Patch #258

Textilize document snippet on overview and activity page

Added by Panta Rhei about 12 years ago. Updated almost 9 years ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Text formatting
Target version:-

Description

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

truncate_activity_document.patch Magnifier (1.68 KB) Panta Rhei, 2008-02-03 11:02

truncate_activity_document.patch Magnifier (1.39 KB) Panta Rhei, 2008-02-03 11:02

truncate_activity_document.patch Magnifier (1.4 KB) Panta Rhei, 2008-02-03 11:02


Related issues

Related to Redmine - Feature #202: Textilization of Documents, News and Timelog-entry comments New
Related to Redmine - Feature #3527: Activity List should wiki parse summaries New 2009-06-23
Related to Redmine - Defect #26321: Activity view should not show raw text New

History

#1 Updated by Panta Rhei about 12 years ago

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.

#2 Updated by Michael Pirogov about 12 years ago

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>

#3 Updated by Panta Rhei about 12 years ago

Sorry, the first file contains too much. ;)

#4 Updated by Felix Schäfer almost 10 years ago

  • Subject changed from Patch for ticket #17583 to Textilize document snippet on overview and activity page

The snippets are formatted on the document overview, not yet on the activity view though.

#5 Updated by Etienne Massip almost 9 years ago

  • Category set to Text formatting

#6 Updated by Mischa The Evil over 2 years ago

  • Related to Defect #26321: Activity view should not show raw text added

Also available in: Atom PDF