annotate .svn/pristine/fc/fc6f47b58bfa56e7e03288bcdf7475367e1fb37d.svn-base @ 1327:287f201c2802 redmine-2.2-integration

Add italic
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Wed, 19 Jun 2013 20:56:22 +0100
parents cbb26bc654de
children
rev   line source
Chris@909 1 <div class="contextual">
Chris@909 2 <%= link_to l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add' %>
Chris@909 3 </div>
Chris@909 4
Chris@909 5 <h2><%=l(:label_project_plural)%></h2>
Chris@909 6
Chris@909 7 <% form_tag({}, :method => :get) do %>
Chris@909 8 <fieldset><legend><%= l(:label_filter_plural) %></legend>
Chris@909 9 <label for='status'><%= l(:field_status) %> :</label>
Chris@909 10 <%= select_tag 'status', project_status_options_for_select(@status), :class => "small", :onchange => "this.form.submit(); return false;" %>
Chris@909 11 <label for='name'><%= l(:label_project) %>:</label>
Chris@909 12 <%= text_field_tag 'name', params[:name], :size => 30 %>
Chris@909 13 <%= submit_tag l(:button_apply), :class => "small", :name => nil %>
Chris@909 14 <%= link_to l(:button_clear), {:controller => 'admin', :action => 'projects'}, :class => 'icon icon-reload' %>
Chris@909 15 </fieldset>
Chris@909 16 <% end %>
Chris@909 17 &nbsp;
Chris@909 18
Chris@909 19 <div class="autoscroll">
Chris@909 20 <table class="list">
Chris@909 21 <thead><tr>
Chris@909 22 <th><%=l(:label_project)%></th>
Chris@909 23 <th><%=l(:field_is_public)%></th>
Chris@909 24 <th><%=l(:field_created_on)%></th>
Chris@909 25 <th></th>
Chris@909 26 </tr></thead>
Chris@909 27 <tbody>
Chris@909 28 <% project_tree(@projects) do |project, level| %>
Chris@909 29 <tr class="<%= cycle("odd", "even") %> <%= project.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>">
Chris@909 30 <td class="name"><span><%= link_to_project(project, {:action => 'settings'}, :title => project.short_description) %></span></td>
Chris@909 31 <td align="center"><%= checked_image project.is_public? %></td>
Chris@909 32 <td align="center"><%= format_date(project.created_on) %></td>
Chris@909 33 <td class="buttons">
Chris@909 34 <%= link_to(l(:button_archive), { :controller => 'projects', :action => 'archive', :id => project, :status => params[:status] }, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-lock') if project.active? %>
Chris@909 35 <%= link_to(l(:button_unarchive), { :controller => 'projects', :action => 'unarchive', :id => project, :status => params[:status] }, :method => :post, :class => 'icon icon-unlock') if !project.active? && (project.parent.nil? || project.parent.active?) %>
Chris@909 36 <%= link_to(l(:button_copy), { :controller => 'projects', :action => 'copy', :id => project }, :class => 'icon icon-copy') %>
Chris@909 37 <%= link_to(l(:button_delete), project_destroy_confirm_path(project), :class => 'icon icon-del') %>
Chris@909 38 </td>
Chris@909 39 </tr>
Chris@909 40 <% end %>
Chris@909 41 </tbody>
Chris@909 42 </table>
Chris@909 43 </div>
Chris@909 44
Chris@909 45 <% html_title(l(:label_project_plural)) -%>