diff --git a/app/assets/stylesheets/default/application.css.erb b/app/assets/stylesheets/default/application.css.erb index 5e73c050404c..6c6eae180ac3 100644 --- a/app/assets/stylesheets/default/application.css.erb +++ b/app/assets/stylesheets/default/application.css.erb @@ -1909,7 +1909,7 @@ table.files { #history .journal { position: relative; margin: 0 0 15px; - margin-bottom: 45px; + margin-bottom: 20px; min-height: 40px; clear: left; margin-left: 3px; @@ -1923,6 +1923,7 @@ table.files { padding-right: 4px; } .journal h4 { + padding-right: 5px; font-size: 12px; font-weight: normal; position: relative; @@ -1935,7 +1936,7 @@ table.files { color: #999; } .journal .wiki { - padding: 10px 10px 5px 0px; + padding: 0; overflow: auto; margin-left: 50px; } @@ -2740,9 +2741,15 @@ fieldset#attachments input, fieldset#attachments span.add_another_file { #watchers .contextual { margin-top: 0px; } -div.description, div.issue_tree, div.relations { - padding-left: 3px; + +div.work_package_part { + margin-top: 15px; } + +div.work_package_part strong { + text-decoration: underline +} + div.box-actions { float: right; margin-right: 16px; @@ -3214,10 +3221,6 @@ a.sort.desc { width: 700px; } -#history .journal { - background: url(<%= asset_path 'dotted-separator.gif' %>) repeat-x scroll 0 0 transparent; -} - .my-project { background: url(<%= asset_path 'fav.png' %>) no-repeat 0 50%; } diff --git a/app/views/work_packages/_subwork_packages_paragraph.html.erb b/app/views/work_packages/_subwork_packages_paragraph.html.erb index fbde67953aaa..7959aa12352e 100644 --- a/app/views/work_packages/_subwork_packages_paragraph.html.erb +++ b/app/views/work_packages/_subwork_packages_paragraph.html.erb @@ -26,35 +26,36 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. See doc/COPYRIGHT.rdoc for more details. ++#%> - -<%= l(:label_work_package_hierarchy) %> -<% if User.current.allowed_to?(:manage_subtasks, @project) %> - (<%= link_to(l(:label_add_subtask), new_project_work_package_path(:project_id => @project, - :sti_type => WorkPackage.to_s, - :work_package => { :parent_id => work_package })) %>) -<% end %> - -<% if !work_package.leaf? || work_package.parent %> - <% indent = 0 %> - -
- - - - <% ancestors.each do |ancestor| %> - <%= render_work_package_tree_row ancestor, indent, "parent" %> +
+ <%= l(:label_work_package_hierarchy) %> + <% if User.current.allowed_to?(:manage_subtasks, @project) %> + (<%= link_to(l(:label_add_subtask), new_project_work_package_path(:project_id => @project, + :sti_type => WorkPackage.to_s, + :work_package => { :parent_id => work_package })) %>) + <% end %> + + <% if !work_package.leaf? || work_package.parent %> + <% indent = 0 %> + + +
+ + + <% ancestors.each do |ancestor| %> + <%= render_work_package_tree_row ancestor, indent, "parent" %> + <% indent += 1 %> + <% end %> + + + <%= render_work_package_tree_row work_package, indent, "root" %> <% indent += 1 %> - <% end %> - - - <%= render_work_package_tree_row work_package, indent, "root" %> - <% indent += 1 %> - - <% work_package_list(descendants) do |descendant, level| %> - <%= render_work_package_tree_row descendant, indent + level, "child" %> - <% end %> + + <% work_package_list(descendants) do |descendant, level| %> + <%= render_work_package_tree_row descendant, indent + level, "child" %> + <% end %> -
-
-<% end %> + + + <% end %> + \ No newline at end of file diff --git a/app/views/work_packages/show.html.erb b/app/views/work_packages/show.html.erb index 1b2a519f60c8..a2e0de56f6cf 100644 --- a/app/views/work_packages/show.html.erb +++ b/app/views/work_packages/show.html.erb @@ -46,8 +46,6 @@ See doc/COPYRIGHT.rdoc for more details. <% end %>

-
-
@@ -66,10 +64,9 @@ See doc/COPYRIGHT.rdoc for more details.
- <% if work_package.description? %> -
-
+
+
<%= link_to_if_authorized(l(:button_quote), { controller: :work_packages, action: :quoted, id: work_package }, :class => 'quote-link icon icon-comment') %>
@@ -77,7 +74,6 @@ See doc/COPYRIGHT.rdoc for more details.
<%= textilizable work_package, :description, :attachments => work_package.attachments %>
-
<% end %> @@ -87,15 +83,13 @@ See doc/COPYRIGHT.rdoc for more details. <%= call_hook(:view_issues_show_description_bottom, :issue => work_package) %> -
<%= render :partial => 'subwork_packages_paragraph', :locals => { :work_package => work_package, :ancestors => ancestors, :descendants => descendants } %> <% if authorize_for('work_package_relations', 'create') || relations.present? %> -
-
+
<%= render :partial => 'relations', :locals => { :work_package => work_package, :relations => relations } %>
@@ -103,8 +97,7 @@ See doc/COPYRIGHT.rdoc for more details. <% if User.current.allowed_to?(:add_work_package_watchers, project) || (work_package.watchers.present? && User.current.allowed_to?(:view_work_package_watchers, project)) %> -
-
+
<%= render :partial => 'watchers/watchers', :locals => {:watched => work_package} %>
<% end %> diff --git a/doc/CHANGELOG.md b/doc/CHANGELOG.md index ff54bd3f0724..875141f067dd 100644 --- a/doc/CHANGELOG.md +++ b/doc/CHANGELOG.md @@ -30,6 +30,7 @@ See doc/COPYRIGHT.rdoc for more details. # Changelog * `#1560` WorkPackage/update does not retain some fields when validations fail +* `#1929` Too many lines in work package view * `#1946` Modal shown within in Modal * `#1949` External links within modals do not work * `#1992` Prepare schema migrations table