diff --git a/app/assets/stylesheets/_misc_legacy.sass b/app/assets/stylesheets/_misc_legacy.sass index ae883418b9..4a1a8858b8 100644 --- a/app/assets/stylesheets/_misc_legacy.sass +++ b/app/assets/stylesheets/_misc_legacy.sass @@ -639,3 +639,10 @@ h4.comment a.impaired--empty-link, .impaired--empty-link color: inherit + +/* Align widget boxes with description above on project overview */ +.project-overview + margin: 0 -1rem + + .widget-box + margin-bottom: 20px diff --git a/app/assets/stylesheets/content/_my_page.sass b/app/assets/stylesheets/content/_my_page.sass index f0f85711ce..b615bdba08 100644 --- a/app/assets/stylesheets/content/_my_page.sass +++ b/app/assets/stylesheets/content/_my_page.sass @@ -50,6 +50,9 @@ .widget-box margin-bottom: 20px + &:last-child + margin-bottom: 10px + .handle cursor: move @@ -79,10 +82,11 @@ div.box-actions .left, .right @extend .medium-6 - .left - padding: 0 10px 0px 4px - .right - padding: 0 4px 0 10px + .widget-box + margin-bottom: 20px + + &:last-child + margin-bottom: 10px .block-receiver border: 1px dashed $my-page-edit-box-border-color diff --git a/app/assets/stylesheets/content/_widget_box.sass b/app/assets/stylesheets/content/_widget_box.sass index 18493d4f87..28224e86c5 100644 --- a/app/assets/stylesheets/content/_widget_box.sass +++ b/app/assets/stylesheets/content/_widget_box.sass @@ -55,6 +55,14 @@ $widget-box--enumeration-width: 20px .icon-context:before padding-right: 5px + &.grid-content + padding-left: 10px + padding-right: 10px + + .widget-box + margin-left: 0 + margin-right: 0 + .widget-box @include widget-box--style padding: 10px 20px 30px 20px diff --git a/app/views/projects/_members_box.html.erb b/app/views/projects/_members_box.html.erb index deacdd13f0..f03ba22ab2 100644 --- a/app/views/projects/_members_box.html.erb +++ b/app/views/projects/_members_box.html.erb @@ -28,8 +28,11 @@ See doc/COPYRIGHT.rdoc for more details. ++#%> <% if @users_by_role.any? %> -
-

<%=l(:label_member_plural)%>

+
+

+ + <%=l(:label_member_plural)%> +

<% @users_by_role.sort.each do |role, users| %> <%= role %>: <%= users.sort.collect{ |u| link_to_user u }.join(", ").html_safe %>
diff --git a/app/views/projects/show.html.erb b/app/views/projects/show.html.erb index a4cd1b3784..017514a6dd 100644 --- a/app/views/projects/show.html.erb +++ b/app/views/projects/show.html.erb @@ -31,27 +31,31 @@ See doc/COPYRIGHT.rdoc for more details. <% breadcrumb_paths(l(:label_overview)) %> -

-
-
- <%= format_text @project.description %> -
-
    - <% if @subprojects.any? %> -
  • - <%= l(:label_subproject_plural) %>: - <%=raw @subprojects.map { |project| link_to(project.name, project) }.to_sentence %> -
  • - <% end %> - <% @project.visible_custom_field_values.each do |custom_value| %> - <% if custom_value.value.present? %> -
  • <%= custom_value.custom_field.name %>: <%= show_value(custom_value) %>
  • - <% end %> - <% end %> -
+
+ <%= format_text @project.description %> +
+
    + <% if @subprojects.any? %> +
  • + <%= l(:label_subproject_plural) %>: + <%=raw @subprojects.map { |project| link_to(project.name, project) }.to_sentence %> +
  • + <% end %> + <% @project.visible_custom_field_values.each do |custom_value| %> + <% if custom_value.value.present? %> +
  • <%= custom_value.custom_field.name %>: <%= show_value(custom_value) %>
  • + <% end %> + <% end %> +
+ +
+
<% if User.current.allowed_to?(:view_work_packages, @project) %> -
-

<%=l(:label_work_package_tracking)%>

+
+

+ + <%=l(:label_work_package_tracking)%> +

    <% for type in @types %>
  • <%= link_to (type.is_standard) ? l(:default_type) : h(type.name), @@ -72,12 +76,15 @@ See doc/COPYRIGHT.rdoc for more details. <%= call_hook(:view_projects_show_left, project: @project) %>
-
+
<%= render partial: 'members_box' %> <% if @news.any? && authorize_for('news', 'index') %> -
-

<%=l(:label_news_latest)%>

+
+

+ + <%=l(:label_news_latest)%> +

<%= render partial: 'news/news', collection: @news %>

<%= link_to l(:label_news_view_all), {controller: '/news', action: 'index', project_id: @project}, class: 'button -highlight' %>

diff --git a/features/projects/show.feature b/features/projects/show.feature index 728c5b46e4..975ef92ce2 100644 --- a/features/projects/show.feature +++ b/features/projects/show.feature @@ -45,7 +45,7 @@ Feature: Showing Projects Scenario: Calendar link in the 'tickets box' should work when calendar is activated When I go to the overview page of the project "omicronpersei8" - Then I should see "Calendar" within "#content .issues.content-box" - When I click on "Calendar" within "#content .issues.content-box" + Then I should see "Calendar" within "#content .issues.widget-box" + When I click on "Calendar" within "#content .issues.widget-box" Then I should see "Calendar" within ".title-container h2" And I should see "Sunday" within "#content > table.cal"