make title of mypage-boxes always visible

most of the time the title was not rendered if there 
was no content in the box
added titles were needed
changed title 'wiki' in project description box
pull/6827/head
Romano Licker 13 years ago
parent c9f85970fd
commit a7999bdf71
  1. 2
      app/views/my_projects_overviews/blocks/_issuetracking.rhtml
  2. 2
      app/views/my_projects_overviews/blocks/_members.rhtml
  3. 2
      app/views/my_projects_overviews/blocks/_news.rhtml
  4. 1
      app/views/my_projects_overviews/blocks/_projectdetails.rhtml
  5. 3
      app/views/my_projects_overviews/blocks/_wiki.rhtml
  6. 1
      config/locales/de.yml
  7. 1
      config/locales/en.yml

@ -1,7 +1,7 @@
<h2 class="page-layout-only"><%=l(:label_issue_tracking)%></h2> <h2 class="page-layout-only"><%=l(:label_issue_tracking)%></h2>
<h3><%=l(:label_issue_tracking)%></h3>
<% if User.current.allowed_to?(:view_issues, @project) %> <% if User.current.allowed_to?(:view_issues, @project) %>
<div class="issues overview"> <div class="issues overview">
<h3><%=l(:label_issue_tracking)%></h3>
<ul> <ul>
<% for tracker in @trackers %> <% for tracker in @trackers %>
<li><%= link_to h(tracker.name), :controller => 'issues', :action => 'index', :project_id => @project, <li><%= link_to h(tracker.name), :controller => 'issues', :action => 'index', :project_id => @project,

@ -1,7 +1,7 @@
<h2 class="page-layout-only"><%=l(:label_member_plural)%></h2> <h2 class="page-layout-only"><%=l(:label_member_plural)%></h2>
<h3><%=l(:label_member_plural)%></h3>
<% if @users_by_role.any? %> <% if @users_by_role.any? %>
<div class="members overview"> <div class="members overview">
<h3><%=l(:label_member_plural)%></h3>
<p><% @users_by_role.keys.sort.each do |role| %> <p><% @users_by_role.keys.sort.each do |role| %>
<%=h role %>: <%= @users_by_role[role].sort.collect{|u| link_to_user u}.join(", ") %><br /> <%=h role %>: <%= @users_by_role[role].sort.collect{|u| link_to_user u}.join(", ") %><br />
<% end %></p> <% end %></p>

@ -1,7 +1,7 @@
<h2 class="page-layout-only"><%=l(:label_news)%></h2> <h2 class="page-layout-only"><%=l(:label_news)%></h2>
<h3><%=l(:label_news_latest)%></h3>
<% if @news.any? && authorize_for('news', 'index') %> <% if @news.any? && authorize_for('news', 'index') %>
<div class="news box"> <div class="news box">
<h3><%=l(:label_news_latest)%></h3>
<%= render :partial => 'news/news', :collection => @news %> <%= render :partial => 'news/news', :collection => @news %>
<p><%= link_to l(:label_news_view_all), :controller => 'news', :action => 'index', :project_id => @project %></p> <p><%= link_to l(:label_news_view_all), :controller => 'news', :action => 'index', :project_id => @project %></p>
</div> </div>

@ -1,4 +1,5 @@
<h2 class="page-layout-only"><%=l(:label_project_details)%></h2> <h2 class="page-layout-only"><%=l(:label_project_details)%></h2>
<h3><%=l(:label_project_details)%></h3>
<ul> <ul>
<% unless @project.homepage.blank? %><li><%=l(:field_homepage)%>: <%= auto_link(h(@project.homepage)) %></li><% end %> <% unless @project.homepage.blank? %><li><%=l(:field_homepage)%>: <%= auto_link(h(@project.homepage)) %></li><% end %>
<% if @subprojects.any? %> <% if @subprojects.any? %>

@ -1,4 +1,5 @@
<h2 class="page-layout-only"><%=l(:label_wiki)%></h2> <h2 class="page-layout-only"><%=l(:label_project_description)%></h2>
<h3><%=l(:label_project_description)%></h3>
<div class="wiki"> <div class="wiki">
<%= textilizable @project.description %> <%= textilizable @project.description %>
</div> </div>

@ -1,6 +1,7 @@
de: de:
label_hidden_elements: Versteckte Elemente label_hidden_elements: Versteckte Elemente
label_visible_elements: Sichtbare Elemente label_visible_elements: Sichtbare Elemente
label_project_description: Projektbeschreibung
label_project_details: Projektdetails label_project_details: Projektdetails
label_custom_element: Teaser hinzufügen ... label_custom_element: Teaser hinzufügen ...
info_custom_text: Benutzerdefinierter Text info_custom_text: Benutzerdefinierter Text

@ -1,6 +1,7 @@
en: en:
label_hidden_elements: Hidden elements label_hidden_elements: Hidden elements
label_visible_elements: Visible elements label_visible_elements: Visible elements
label_project_description: Projekt description
label_project_details: Project details label_project_details: Project details
label_custom_element: Add teaser ... label_custom_element: Add teaser ...
info_custom_text: Custom text info_custom_text: Custom text

Loading…
Cancel
Save