プロジェクト

全般

プロフィール

Vote #62256

未完了

Textilize document snippet on overview and activity page

Admin Redmine さんがほぼ2年前に追加. ほぼ2年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Text formatting_26
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
26
version_id:
0
issue_org_id:
258
author_id:
122
assigned_to_id:
0
comments:
6
status_id:
1
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

Small patch for adding formattet Text in overwies.

See Ticket here: http://rubyforge.org/tracker/index.php?func=detail&aid=17583&group_id=1850&atid=7160


journals

new patch including Michael's changes.

this patch changes the description on activities page.
instead of linking the complete comment the author is now
linked. format: link([author]) [time] [revision]

so you have all important informations at a glance.
so much clearer, for me at least.

should only effect repository changes.

this patch supersedes all previous attached and posted patches.
--------------------------------------------------------------------------------
Patch for full textilization:

Index: documents/_document.rhtml
=================================================================
==
--- documents/_document.rhtml (revision 1104)
+++ documents/_document.rhtml (working copy)
@@ -1,3 +1,5 @@
<p><%= link_to h(document.title), :controller =>
'documents', :action => 'show', :id => document %><br
/>
<% unless document.description.blank?
%><%=h(truncate(document.description, 250)) %><br
/><% end %>
+<br/>
+<% unless document.description.blank? %><%=
textilize(sanitize(truncate(document.description, 250)))) %><br
/><% end %>
<em><%= format_time(document.created_on)
%></em></p>
Index: projects/activity.rhtml
=================================================================
==
--- projects/activity.rhtml (revision 1104)
+++ projects/activity.rhtml (working copy)
@@ -5,7 +5,7 @@
<ul>
<% @events_by_day[day].sort {|x,y| y.event_datetime <=>
x.event_datetime }.each do |e| %>
<li><p><%= format_time(e.event_datetime,
false) %> <%= link_to truncate(e.event_title, 100), e.event_url
%><br />
- <% unless e.event_description.blank? %><em><%=
truncate(e.event_description, 500) %></em><br /><%
end %>
+ <% unless e.event_description.blank? %><em><%=
textilize(sanitize(truncate(e.event_description, 500)))
%></em><br /><% end %>
<span class="author"><%= e.event_author
if e.respond_to?(:event_author)
%></span></p></li>
<% end %>
</ul>
--------------------------------------------------------------------------------
Sorry, the first file contains too much. ;)
--------------------------------------------------------------------------------
The snippets are formatted on the document overview, not yet on the activity view though.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

relates,New,202,Textilization of Documents, News and Timelog-entry comments
relates,New,3527,Activity List should wiki parse summaries
relates,New,26321,Activity view should not show raw text

Admin Redmine さんがほぼ2年前に更新

  • カテゴリText formatting_26 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0