##// END OF EJS Templates
Hide empty ul on project overview (#21159)....
Hide empty ul on project overview (#21159). Patch by Felix Gliesche. git-svn-id: http://svn.redmine.org/redmine/trunk@14797 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r14415:03f059e3ba98
r14415:03f059e3ba98
Show More
show.html.erb
107 lines | 4.2 KiB | text/plain | TextLexer
Jean-Philippe Lang
Adds a 'Add subprojects' permission....
r3124 <div class="contextual">
Toshi MARUYAMA
replace tabs to spaces at app/views/projects/show.html.erb...
r7112 <% if User.current.allowed_to?(:add_subprojects, @project) %>
Jean-Philippe Lang
Code cleanup, use named routes....
r10844 <%= link_to l(:label_subproject_new), new_project_path(:parent_id => @project), :class => 'icon icon-add' %>
Toshi MARUYAMA
replace tabs to spaces at app/views/projects/show.html.erb...
r7112 <% end %>
Jean-Philippe Lang
Ability to close projects (read-only) (#3640)....
r9700 <% if User.current.allowed_to?(:close_project, @project) %>
<% if @project.active? %>
<%= link_to l(:button_close), close_project_path(@project), :data => {:confirm => l(:text_are_you_sure)}, :method => :post, :class => 'icon icon-lock' %>
<% else %>
<%= link_to l(:button_reopen), reopen_project_path(@project), :data => {:confirm => l(:text_are_you_sure)}, :method => :post, :class => 'icon icon-unlock' %>
<% end %>
<% end %>
Jean-Philippe Lang
Adds a 'Add subprojects' permission....
r3124 </div>
Toshi MARUYAMA
remove trailing white-spaces from app/views/projects/show.rhtml....
r6221 <h2><%=l(:label_overview)%></h2>
Toshi MARUYAMA
remove trailing tabs from app/views/projects/show.html.erb...
r7110
Jean-Philippe Lang
Ability to close projects (read-only) (#3640)....
r9700 <% unless @project.active? %>
<p class="warning"><span class="icon icon-lock"><%= l(:text_project_closed) %></span></p>
<% end %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <div class="splitcontentleft">
Jean-Philippe Lang
Ability to close projects (read-only) (#3640)....
r9700 <% if @project.description.present? %>
Toshi MARUYAMA
replace tabs to spaces at app/views/projects/show.html.erb...
r7112 <div class="wiki">
<%= textilizable @project.description %>
</div>
Jean-Philippe Lang
Ability to close projects (read-only) (#3640)....
r9700 <% end %>
Jean-Philippe Lang
Hide empty ul on project overview (#21159)....
r14415 <% if @project.homepage.present? || @subprojects.any? || @project.visible_custom_field_values.any?(&:present?) %>
Toshi MARUYAMA
replace tabs to spaces at app/views/projects/show.html.erb...
r7112 <ul>
Toshi MARUYAMA
Rails3: view: html_safe for auto_link of project homepage...
r8836 <% unless @project.homepage.blank? %>
Jean-Philippe Lang
Removed unneeded #h calls in views....
r13661 <li><span class="label"><%=l(:field_homepage)%>:</span> <%= link_to @project.homepage, @project.homepage %></li>
Toshi MARUYAMA
Rails3: view: html_safe for auto_link of project homepage...
r8836 <% end %>
Jean-Philippe Lang
Merged nested projects branch. Removes limit on subproject nesting (#594)....
r2302 <% if @subprojects.any? %>
Jean-Philippe Lang
HTML improvements on project landing page (#18565)....
r13371 <li><span class="label"><%=l(:label_subproject_plural)%>:</span>
Jean-Philippe Lang
Code cleanup, use named routes....
r10844 <%= @subprojects.collect{|p| link_to p, project_path(p)}.join(", ").html_safe %></li>
Toshi MARUYAMA
replace tabs to spaces at app/views/projects/show.html.erb...
r7112 <% end %>
Jean-Philippe Lang
Fixed: Custom field is rendered, even if its value is empty (for multiple) (#18654)....
r13482 <% render_custom_field_values(@project) do |custom_field, formatted| %>
<li><span class="label"><%= custom_field.name %>:</span> <%= formatted %></li>
Jean-Philippe Lang
Merged nested projects branch. Removes limit on subproject nesting (#594)....
r2302 <% end %>
Toshi MARUYAMA
replace tabs to spaces at app/views/projects/show.html.erb...
r7112 </ul>
Jean-Philippe Lang
Hide empty ul on project overview (#21159)....
r14415 <% end %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330
Jean-Philippe Lang
Added project module concept....
r714 <% if User.current.allowed_to?(:view_issues, @project) %>
Toshi MARUYAMA
remove trailing white-spaces from app/views/projects/show.rhtml....
r6221 <div class="issues box">
Jean-Philippe Lang
Removes large icons....
r3065 <h3><%=l(:label_issue_tracking)%></h3>
Jean-Philippe Lang
Use a table instead of an unordered list in "Issue tracking" box (#20413)....
r14258 <table class="list issue-report">
<thead>
<tr>
<th></th>
<th><%=l(:label_open_issues_plural)%></th>
<th><%=l(:label_closed_issues_plural)%></th>
<th><%=l(:label_total)%></th>
</tr>
</thead>
<tbody>
<% @trackers.each do |tracker| %>
<tr class="<%= cycle("odd", "even") %>">
<td class="name">
Jean-Philippe Lang
Adds link to open issues on tracker name (#20413)....
r14355 <%= link_to tracker.name, project_issues_path(@project, :set_filter => 1, :tracker_id => tracker.id) %>
Jean-Philippe Lang
Use a table instead of an unordered list in "Issue tracking" box (#20413)....
r14258 </td>
<td>
<%= link_to @open_issues_by_tracker[tracker].to_i, project_issues_path(@project, :set_filter => 1, :tracker_id => tracker.id) %>
</td>
<td>
<%= link_to (@total_issues_by_tracker[tracker].to_i - @open_issues_by_tracker[tracker].to_i), project_issues_path(@project, :set_filter => 1, :tracker_id => tracker.id, :status_id => 'c') %>
</td>
<td>
<%= link_to @total_issues_by_tracker[tracker].to_i, project_issues_path(@project, :set_filter => 1, :tracker_id => tracker.id, :status_id => '*') %>
</td>
</tr>
<% end %>
</tbody>
</table>
Jean-Philippe Lang
Issue sidebar cleanup....
r3075 <p>
Jean-Philippe Lang
Code cleanup, use named routes....
r10844 <%= link_to l(:label_issue_view_all), project_issues_path(@project, :set_filter => 1) %>
Toshi MARUYAMA
replace tabs to spaces at app/views/projects/show.html.erb...
r7112 <% if User.current.allowed_to?(:view_calendar, @project, :global => true) %>
Jean-Philippe Lang
Code cleanup, use named routes....
r10844 | <%= link_to l(:label_calendar), project_calendar_path(@project) %>
Toshi MARUYAMA
replace tabs to spaces at app/views/projects/show.html.erb...
r7112 <% end %>
<% if User.current.allowed_to?(:view_gantt, @project, :global => true) %>
Jean-Philippe Lang
Code cleanup, use named routes....
r10844 | <%= link_to l(:label_gantt), project_gantt_path(@project) %>
Toshi MARUYAMA
replace tabs to spaces at app/views/projects/show.html.erb...
r7112 <% end %>
</p>
Jean-Philippe Lang
Initial commit...
r2 </div>
Jean-Philippe Lang
Added project module concept....
r714 <% end %>
Eric Davis
Added two new plugin hooks to the Project Overview page...
r2594 <%= call_hook(:view_projects_show_left, :project => @project) %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </div>
<div class="splitcontentright">
Eric Davis
Refactor: extract Members Box to partial....
r3895 <%= render :partial => 'members_box' %>
Toshi MARUYAMA
remove trailing white-spaces from app/views/projects/show.rhtml....
r6221
Jean-Philippe Lang
Moved ProjectsController#list_news to NewsController#index....
r875 <% if @news.any? && authorize_for('news', 'index') %>
Jean-Philippe Lang
Removes large icons....
r3065 <div class="news box">
Toshi MARUYAMA
remove trailing white-spaces from app/views/projects/show.rhtml....
r6221 <h3><%=l(:label_news_latest)%></h3>
Jean-Philippe Lang
various modifications to prevent xss...
r96 <%= render :partial => 'news/news', :collection => @news %>
Jean-Philippe Lang
Code cleanup, use named routes....
r10844 <p><%= link_to l(:label_news_view_all), project_news_index_path(@project) %></p>
Toshi MARUYAMA
remove trailing white-spaces from app/views/projects/show.rhtml....
r6221 </div>
Jean-Philippe Lang
News box on project/show is hidden if there is no news to display....
r448 <% end %>
Eric Davis
Added two new plugin hooks to the Project Overview page...
r2594 <%= call_hook(:view_projects_show_right, :project => @project) %>
Jean-Philippe Lang
Added feeds auto discovery links on projects/show (patch by Nicolas Chuche)....
r641 </div>
Jean-Philippe Lang
Application layout refactored....
r736 <% content_for :sidebar do %>
Jean-Philippe Lang
Moves project sidebar content to a partial (#17380)....
r13030 <%= render :partial => 'projects/sidebar' %>
Jean-Philippe Lang
Application layout refactored....
r736 <% end %>
Jean-Philippe Lang
Added feeds auto discovery links on projects/show (patch by Nicolas Chuche)....
r641 <% content_for :header_tags do %>
Eric Davis
Refactor: extract ProjectsController#activity to a new Activities controller....
r3933 <%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :id => @project, :format => 'atom', :key => User.current.rss_key}) %>
Jean-Philippe Lang
Added feeds auto discovery links on projects/show (patch by Nicolas Chuche)....
r641 <% end %>
Jean-Philippe Lang
More detailed html title on several views....
r951
Jean-Philippe Lang
Slight improvements to the browser views....
r1019 <% html_title(l(:label_overview)) -%>