Patch #1680 ยป textilizable_version_description.patch
| app/views/versions/_form.rhtml (working copy) | ||
|---|---|---|
|
<div class="box">
|
||
|
<p><%= f.text_field :name, :size => 60, :required => true %></p>
|
||
|
<p><%= f.text_field :description, :size => 60 %></p>
|
||
|
<p><%= f.text_area :description,
|
||
|
:cols => 60,
|
||
|
:rows => (@version.description.blank? ? 10 : [[10, @version.description.length / 50].max, 100].min),
|
||
|
:accesskey => accesskey(:edit),
|
||
|
:class => 'wiki-edit' %></p>
|
||
|
<p><%= f.text_field :wiki_page_title, :label => :label_wiki_page, :size => 60, :disabled => @project.wiki.nil? %></p>
|
||
|
<p><%= f.text_field :effective_date, :size => 10 %><%= calendar_for('version_effective_date') %></p>
|
||
|
</div>
|
||
| app/views/versions/_overview.rhtml (working copy) | ||
|---|---|---|
|
<p><strong><%=l(:label_roadmap_due_in)%> <%= distance_of_time_in_words Time.now, version.effective_date %> (<%= format_date(version.effective_date) %>)</strong></p>
|
||
|
<% end %>
|
||
|
<p><%=h version.description %></p>
|
||
|
<p><%= textilizable version.description %></p>
|
||
|
<% if version.fixed_issues.count > 0 %>
|
||
|
<%= progress_bar([version.closed_pourcent, version.completed_pourcent], :width => '40em', :legend => ('%0.0f%' % version.completed_pourcent)) %>
|
||