Project

General

Profile

Feature #13242 » list_with_li.v2.patch

Now with correct end-of-line - Filou Centrinov, 2013-04-20 18:11

View differences:

app/views/activities/index.html.erb (working copy)
<% content_for :sidebar do %>
<%= form_tag({}, :method => :get) do %>
<h3><%= l(:label_activity) %></h3>
<p><% @activity.event_types.each do |t| %>
<%= check_box_tag "show_#{t}", 1, @activity.scope.include?(t) %>
<ul><% @activity.event_types.each do |t| %>
<li><%= check_box_tag "show_#{t}", 1, @activity.scope.include?(t) %>
<label for="show_<%=t%>"><%= link_to(l("label_#{t.singularize}_plural"), {"show_#{t}" => 1, :user_id => params[:user_id], :from => params[:from]})%></label>
<br />
<% end %></p>
</li>
<% end %></ul>
<% if @project && @project.descendants.active.any? %>
<%= hidden_field_tag 'with_subprojects', 0 %>
<p><label><%= check_box_tag 'with_subprojects', 1, @with_subprojects %> <%=l(:label_subproject_plural)%></label></p>
app/views/documents/index.html.erb (working copy)
<% content_for :sidebar do %>
<h3><%= l(:label_sort_by, '') %></h3>
<%= link_to l(:field_category), {:sort_by => 'category'}, :class => (@sort_by == 'category' ? 'selected' :nil) %><br />
<%= link_to l(:label_date), {:sort_by => 'date'}, :class => (@sort_by == 'date' ? 'selected' :nil) %><br />
<%= link_to l(:field_title), {:sort_by => 'title'}, :class => (@sort_by == 'title' ? 'selected' :nil) %><br />
<%= link_to l(:field_author), {:sort_by => 'author'}, :class => (@sort_by == 'author' ? 'selected' :nil) %>
<ul>
<li><%= link_to l(:field_category), {:sort_by => 'category'}, :class => (@sort_by == 'category' ? 'selected' :nil) %></li>
<li><%= link_to l(:label_date), {:sort_by => 'date'}, :class => (@sort_by == 'date' ? 'selected' :nil) %></li>
<li><%= link_to l(:field_title), {:sort_by => 'title'}, :class => (@sort_by == 'title' ? 'selected' :nil) %></li>
<li><%= link_to l(:field_author), {:sort_by => 'author'}, :class => (@sort_by == 'author' ? 'selected' :nil) %></li>
</ul>
<% end %>
<% html_title(l(:label_document_plural)) -%>
app/views/versions/index.html.erb (working copy)
<% content_for :sidebar do %>
<%= form_tag({}, :method => :get) do %>
<h3><%= l(:label_roadmap) %></h3>
<ul>
<% @trackers.each do |tracker| %>
<label><%= check_box_tag "tracker_ids[]", tracker.id, (@selected_tracker_ids.include? tracker.id.to_s), :id => nil %>
<%=h tracker.name %></label><br />
<li>
<label><%= check_box_tag "tracker_ids[]", tracker.id, (@selected_tracker_ids.include? tracker.id.to_s), :id => nil %>
<%=h tracker.name %></label>
</li>
<% end %>
</ul>
<br />
<label for="completed"><%= check_box_tag "completed", 1, params[:completed] %> <%= l(:label_show_completed_versions) %></label>
<% if @project.descendants.active.any? %>
......
<% end %>
<h3><%= l(:label_version_plural) %></h3>
<ul>
<% @versions.each do |version| %>
<%= link_to format_version_name(version), "##{version_anchor(version)}" %><br />
<li><%= link_to format_version_name(version), "##{version_anchor(version)}" %><br /></li>
<% end %>
</ul>
<% if @completed_versions.present? %>
<p>
<%= link_to_function l(:label_completed_versions),
'$("#toggle-completed-versions").toggleClass("collapsed"); $("#completed-versions").toggle()',
:id => 'toggle-completed-versions', :class => 'collapsible collapsed' %><br />
<span id="completed-versions" style="display:none;">
<%= @completed_versions.map {|version| link_to format_version_name(version), version_path(version)}.join("<br />\n").html_safe %>
</span>
<ul id="completed-versions" style="display:none;">
<% @completed_versions.each do |version| %>
<li><%= link_to format_version_name(version), "version_path(version)}" %></li>
<% end %>
</ul>
</p>
<% end %>
<% end %>
app/views/wiki/_sidebar.html.erb (working copy)
<% end -%>
<h3><%= l(:label_wiki) %></h3>
<%= link_to l(:field_start_page), {:action => 'show', :id => nil} %><br />
<%= link_to l(:label_index_by_title), {:action => 'index'} %><br />
<%= link_to l(:label_index_by_date), {:controller => 'wiki', :project_id => @project, :action => 'date_index'} %><br />
<ul>
<li><%= link_to l(:field_start_page), {:action => 'show', :id => nil} %></li>
<li><%= link_to l(:label_index_by_title), {:action => 'index'} %></li>
<li><%= link_to l(:label_index_by_date), {:controller => 'wiki', :project_id => @project, :action => 'date_index'} %></li>
</ul>
(2-2/2)