Project

General

Profile

Patch #32021 » give-project-info-a-box.patch

Anonymous, 2019-09-04 20:53

View differences:

app/views/projects/show.html.erb (working copy)
<div class="splitcontent">
<div class="splitcontentleft">
<% if @project.description.present? %>
<div class="wiki">
<%= textilizable @project.description %>
<% if @project.description.present? || @project.homepage.present? || @project.visible_custom_field_values.any?(&:present?) %>
<div class="proj-info box">
<h3 class="icon icon-help"><%= l(:label_proj_info) %></h3>
<% if @project.description.present? %>
<div class="wiki">
<%= textilizable @project.description %>
</div>
<% end %>
<% if @project.homepage.present? || @project.visible_custom_field_values.any?(&:present?) %>
<ul>
<% unless @project.homepage.blank? %>
<li><span class="label"><%=l(:field_homepage)%>:</span> <%= link_to_if uri_with_safe_scheme?(@project.homepage), @project.homepage, @project.homepage %></li>
<% end %>
<% render_custom_field_values(@project) do |custom_field, formatted| %>
<li class="<%= custom_field.css_classes %>"><span class="label"><%= custom_field.name %>:</span> <%= formatted %></li>
<% end %>
</ul>
<% end %>
</div>
<% end %>
<% if @project.homepage.present? || @project.visible_custom_field_values.any?(&:present?) %>
<ul>
<% unless @project.homepage.blank? %>
<li><span class="label"><%=l(:field_homepage)%>:</span> <%= link_to_if uri_with_safe_scheme?(@project.homepage), @project.homepage, @project.homepage %></li>
<% end %>
<% render_custom_field_values(@project) do |custom_field, formatted| %>
<li class="<%= custom_field.css_classes %>"><span class="label"><%= custom_field.name %>:</span> <%= formatted %></li>
<% end %>
</ul>
<% end %>
<% if User.current.allowed_to?(:view_issues, @project) %>
<div class="issues box">
......
<ul class="subprojects">
<% @subprojects.each do |project| %>
<li><%= link_to(project.name, project_path(project), :class => project.css_classes).html_safe %></li>
<% end %>
<% end %>
</ul>
</div>
<% end %>
config/locales/en-GB.yml (working copy)
label_preview: Preview
label_feed_plural: Feeds
label_changes_details: Details of all changes
label_proj_info: Information
label_issue_tracking: Issue tracking
label_spent_time: Spent time
label_overall_spent_time: Overall spent time
config/locales/en.yml (working copy)
label_preview: Preview
label_feed_plural: Feeds
label_changes_details: Details of all changes
label_proj_info: Information
label_issue_tracking: Issue tracking
label_spent_time: Spent time
label_total_spent_time: Total spent time
(1-1/3)