annotate app/views/projects/index.html.erb @ 1139:5e476516ffea redmine-2.2-integration

Ensure generated HTML is marked as safe & thus rendered
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 10 Jan 2013 15:11:59 +0000
parents bb32da3bea34
children 16826c3afbba
rev   line source
Chris@0 1 <% content_for :header_tags do %>
Chris@0 2 <%= auto_discovery_link_tag(:atom, {:action => 'index', :format => 'atom', :key => User.current.rss_key}) %>
Chris@0 3 <% end %>
Chris@0 4
Chris@0 5 <div class="contextual">
chris@22 6 <%= link_to l(:label_overall_activity), { :controller => 'activities', :action => 'index' }%>
chris@1139 7 <%= ('| ' + link_to(l(:label_issue_view_all), issues_path)).html_safe if User.current.allowed_to?(:view_issues, nil, :global => true) %>
chris@1139 8 <%= ('| ' + link_to(l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add')).html_safe if User.current.allowed_to?(:add_project, nil, :global => true) %>
Chris@0 9 </div>
Chris@0 10
chris@123 11 <% if @user_projects %>
luisf@69 12
chris@1139 13 <%= render_my_project_hierarchy(@user_projects) %>
Chris@0 14
luisf@69 15 <% end %>
Chris@0 16
chris@124 17 <h2>
chris@124 18 <%= l("label_project_all") %>
chris@124 19 </h2>
chris@124 20
chris@124 21 <%= render_project_table(@projects) %>
chris@123 22
chris@123 23 <p class="pagination"><%= pagination_links_full @project_pages, @project_count %></p>
luisf@69 24
Chris@0 25
Chris@0 26 <% other_formats_links do |f| %>
Chris@909 27 <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
Chris@0 28 <% end %>
Chris@0 29
Chris@1115 30 <% content_for :sidebar do %>
Chris@1115 31 <%= form_tag({}, :method => :get) do %>
Chris@1115 32 <h3><%= l(:label_project_plural) %></h3>
Chris@1115 33 <label for="closed"><%= check_box_tag 'closed', 1, params[:closed] %> <%= l(:label_show_closed_projects) %></label>
Chris@1115 34 <p><%= submit_tag l(:button_apply), :class => 'button-small', :name => nil %></p>
Chris@1115 35 <% end %>
Chris@1115 36 <% end %>
Chris@1115 37
Chris@0 38 <% html_title(l(:label_project_plural)) -%>