Merge branch 'release/4.2' into dev

pull/6827/head
Jens Ulferts 10 years ago
commit 75d0d278d6
  1. 13
      app/assets/stylesheets/backlogs/global.css
  2. 23
      app/assets/stylesheets/backlogs/master_backlog.css.sass
  3. 35
      app/assets/stylesheets/backlogs/taskboard.css.sass
  4. 2
      app/helpers/rb_common_helper.rb
  5. 4
      app/models/burndown.rb
  6. 5
      app/views/projects/settings/_backlogs_settings.html.erb
  7. 2
      app/views/rb_burndown_charts/show.html.erb
  8. 4
      app/views/rb_export_card_configurations/index.html.erb
  9. 4
      app/views/rb_master_backlogs/index.html.erb
  10. 21
      app/views/rb_taskboards/show.html.erb
  11. 3
      app/views/version_settings/edit.html.erb
  12. 2
      config/locales/de.yml
  13. 2
      config/locales/en.yml

@ -64,16 +64,3 @@ See doc/COPYRIGHT.rdoc for more details.
th { th {
font-weight: bold; font-weight: bold;
} }
#col_width label {
display: inline-block;
float: left;
line-height: 40px;
margin: 0 15px;
}
#col_width_input {
display: inline-block;
float: right;
margin: 0;
}

@ -61,6 +61,7 @@
*this adds space at the bottom of the main content div to leave enough space *this adds space at the bottom of the main content div to leave enough space
*for the menu without cutting it even if the bottom backlog does not contain *for the menu without cutting it even if the bottom backlog does not contain
*any elements *any elements
*/
.controller-rb_master_backlogs.action-index #content .controller-rb_master_backlogs.action-index #content
padding-bottom: 180px padding-bottom: 180px
@ -195,7 +196,6 @@
.stories .story .stories .story
cursor: move cursor: move
display: block display: block
height: 2rem
font-size: 0.9rem font-size: 0.9rem
margin: 0 margin: 0
overflow: hidden overflow: hidden
@ -265,7 +265,7 @@
.axislabel .axislabel
font-weight: bold font-weight: bold
/* In-place Sprint Editor /* In-place Sprint Editor */
#rb #backlogs_container #rb #backlogs_container
.sprint.editing .sprint.editing
@ -298,23 +298,24 @@
display: inline-block display: inline-block
float: none float: none
margin: 5px 3px 4px 2px margin: 5px 3px 4px 2px
padding: 0.125rem 0.25rem
font-size: 0.8rem font-size: 0.8rem
// reset the line-height (foundation sets it to "normal" but that does not work here)
line-height: inherit
.type_id.editor .type_id.editor
width: expression( document.body.clientWidth > 99 ? "100px" : "auto" ) width: 15%
/* sets max-width for IE /* sets max-width for IE */
max-width: 100px max-width: 140px
/* for the cool guys /* for the cool guys */
.subject.editor .subject.editor
min-width: 19em width: 60%
width: 53%
.status_id.editor .status_id.editor
width: 68px width: 15%
float: right float: right
.story_points.editor .story_points.editor
float: right float: right
width: 5%
/* In-place Story Editor /* In-place Story Editor */
.controller-rb_master_backlogs.action-show .controller-rb_master_backlogs.action-show
#main, #content, #rb #backlogs_container .backlog .stories #main, #content, #rb #backlogs_container .backlog .stories

@ -63,20 +63,15 @@
line-height: inherit line-height: inherit
white-space: inherit white-space: inherit
.action_menu_specific #col_width input
text-align: right
width: 2em
margin-top: -1px
#rb #rb
#assigned_to_id_options #assigned_to_id_options
display: none display: none
.swimlane .swimlane
min-width: 105px min-width: 105px
/* width + (2*margin) + (2*padding) + (2*border) of .work_package /* width + (2*margin) + (2*padding) + (2*border) of .work_package */
padding: 5px 0 0 5px padding: 5px 0 0 5px
width: 105px width: 105px
/* Must be the same as min-width /* Must be the same as min-width */
#board_header #board_header
background-color: #EBEBEB background-color: #EBEBEB
border: 1px solid #CCCCCC border: 1px solid #CCCCCC
@ -102,7 +97,7 @@
border: 1px solid #CCCCCC border: 1px solid #CCCCCC
border-top: none border-top: none
margin-right: 10px margin-right: 10px
/* IE7 table fix /* IE7 table fix */
table-layout: fixed table-layout: fixed
border-collapse: collapse border-collapse: collapse
empty-cells: show empty-cells: show
@ -218,13 +213,13 @@
* Also use by the Column Width preference to determine the unit width of the * Also use by the Column Width preference to determine the unit width of the
* swimlanes. See RB.Taskboard.initialize() * swimlanes. See RB.Taskboard.initialize()
/* status labels /* status labels */
/* shared #impediments and #tasks /* shared #impediments and #tasks */
/* item styles used by .task and .impediment /* item styles used by .task and .impediment */
/* dialog /* dialog */
.task_editor_dialog.ui-dialog .task_editor_dialog.ui-dialog
.ui-dialog-titlebar-close .ui-dialog-titlebar-close
@ -257,7 +252,7 @@
.light div .light div
color: #000000 color: #000000
/* item editor /* item editor */
#task_editor #task_editor
label label
@ -275,7 +270,7 @@
.remaining_hours, .blocks .remaining_hours, .blocks
width: 268px width: 268px
/* compact view /* compact view */
#rb #rb
.compact .compact
@ -304,7 +299,7 @@
#warning #warning
background-image: image-url("webalys/warning.png") background-image: image-url("webalys/warning.png")
/* others /* others */
.story .story
.story-bar .story-bar
@ -353,3 +348,13 @@
@include story-footer @include story-footer
.t .t
@include ellipsis @include ellipsis
/* Toolbar modifications (no support for labels form the component) */
#toolbar
label[for=col_width_input]
padding-top: rem-calc(20px)
#col_width_input
max-width: 60px

@ -182,7 +182,7 @@ module RbCommonHelper
ret += link_to(l('backlogs.show_burndown_chart'), ret += link_to(l('backlogs.show_burndown_chart'),
{}, {},
:class => 'show_burndown_chart') class: 'show_burndown_chart button')
ret += javascript_tag " ret += javascript_tag "

@ -107,8 +107,8 @@ class Burndown
def determine_max def determine_max
@max = { @max = {
:points => @available_series.values.select{|s| s.unit == :points}.flatten.compact.max || 0.0, :points => @available_series.values.select{|s| s.unit == :points}.flatten.compact.reject(&:nan?).max || 0.0,
:hours => @available_series.values.select{|s| s.unit == :hours}.flatten.compact.max || 0.0 :hours => @available_series.values.select{|s| s.unit == :hours}.flatten.compact.reject(&:nan?).max || 0.0
} }
end end

@ -26,8 +26,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
See doc/COPYRIGHT.rdoc for more details. See doc/COPYRIGHT.rdoc for more details.
++#%> ++#%>
<%= toolbar title:l('backlogs.definition_of_done') %>
<h2><%=l('backlogs.definition_of_done')%></h2>
<% statuses_done_for_project = @project.done_statuses.select(:id).map(&:id) %> <% statuses_done_for_project = @project.done_statuses.select(:id).map(&:id) %>
@ -59,7 +58,7 @@ See doc/COPYRIGHT.rdoc for more details.
<p><%= submit_tag l(:button_save), class: 'button -highlight' %></p> <p><%= submit_tag l(:button_save), class: 'button -highlight' %></p>
<% end %> <% end %>
<h2><%=l('backlogs.rebuild_positions')%></h2> <h3><%=l('backlogs.rebuild_positions')%></h3>
<%= styled_form_tag(:controller => '/projects', :action => "rebuild_positions", :id => @project) do %> <%= styled_form_tag(:controller => '/projects', :action => "rebuild_positions", :id => @project) do %>
<p><%= submit_tag l('backlogs.rebuild'), class: 'button' %></p> <p><%= submit_tag l('backlogs.rebuild'), class: 'button' %></p>

@ -43,7 +43,7 @@ See doc/COPYRIGHT.rdoc for more details.
<div class="burndown_chart" id="burndown_<%= @burndown.sprint_id %>" style="width:600px;height:300px;"><div class="loading"><%=l('backlogs.generating_chart')%></div></div> <div class="burndown_chart" id="burndown_<%= @burndown.sprint_id %>" style="width:600px;height:300px;"><div class="loading"><%=l('backlogs.generating_chart')%></div></div>
<fieldset class="form--fieldset"> <fieldset class="burndown_control form--fieldset">
<legend class="form--fieldset-legend"><%= l('backlogs.chart_options') %></legend> <legend class="form--fieldset-legend"><%= l('backlogs.chart_options') %></legend>
<%= burndown_series_checkboxes(@burndown) %> <%= burndown_series_checkboxes(@burndown) %>
</fieldset> </fieldset>

@ -36,9 +36,7 @@ See doc/COPYRIGHT.rdoc for more details.
<div class='contextual'></div> <div class='contextual'></div>
<h2> <%= toolbar title: l(:label_backlogs_export_card_config_select) %>
<%= l(:label_backlogs_export_card_config_select) %>
</h2>
<ul> <ul>
<% @configs.each do |config| %> <% @configs.each do |config| %>

@ -43,9 +43,7 @@ See doc/COPYRIGHT.rdoc for more details.
<% end %> <% end %>
<div class='contextual'></div> <div class='contextual'></div>
<h2> <%= toolbar title: l(:label_backlogs) %>
<%= l(:label_backlogs) %>
</h2>
<div id="rb"> <div id="rb">
<div id="backlogs_container" class="clearfix"> <div id="backlogs_container" class="clearfix">

@ -43,25 +43,22 @@ See doc/COPYRIGHT.rdoc for more details.
:sprint_id => @sprint) %> :sprint_id => @sprint) %>
<% end %> <% end %>
<% content_for :action_menu_specific do %> <%= toolbar title: h(@sprint.name) do %>
<% if @sprint.has_burndown? %> <% if @sprint.has_burndown? %>
<li class="toolbar-item">
<label for="col_width_input"><%= l('backlogs.column_width') %></label>
</li>
<li class="toolbar-item" id="col_width">
<input type="text" id="col_width_input">
</li>
<li class="toolbar-item">
<%= show_burndown_link(@sprint) %> <%= show_burndown_link(@sprint) %>
</li>
<% end %> <% end %>
<span id="col_width">
<label for="col_width_input"><%= l('backlogs.column_with') %></label>
<input id="col_width_input" name="col_width" type='text' />
</span>
<% end %> <% end %>
<% breadcrumb_paths(link_to(l(:label_backlogs), backlogs_project_backlogs_path(@project)), link_to(@sprint.name, backlogs_project_backlogs_path(@sprint))) %> <% breadcrumb_paths(link_to(l(:label_backlogs), backlogs_project_backlogs_path(@project)), link_to(@sprint.name, backlogs_project_backlogs_path(@sprint))) %>
<h2>
<%= @sprint.name %>
</h2>
<%= render :partial => 'layouts/action_menu_specific' %>
<div id='rb'> <div id='rb'>
<div id="taskboard"> <div id="taskboard">
<table id="board_header" cellspacing="0"> <table id="board_header" cellspacing="0">

@ -33,8 +33,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
See doc/COPYRIGHT.rdoc for more details. See doc/COPYRIGHT.rdoc for more details.
++#%> ++#%>
<%= toolbar title: l(:label_version) %>
<h2><%=l(:label_version)%></h2>
<% labelled_tabular_form_for :version, @version, :url => project_version_path(@project, @version), :html => {:method => :put} do |f| %> <% labelled_tabular_form_for :version, @version, :url => project_version_path(@project, @version), :html => {:method => :put} do |f| %>
<%= render :partial => 'form', :locals => { :f => f } %> <%= render :partial => 'form', :locals => { :f => f } %>

@ -66,7 +66,7 @@ de:
card_paper_size: "Format für Kartendruck" card_paper_size: "Format für Kartendruck"
chart_options: "Aktive Wertereihen" chart_options: "Aktive Wertereihen"
close: "Schließen" close: "Schließen"
column_with: "Spaltenbreite:" column_width: "Spaltenbreite:"
date: "Tag" date: "Tag"
definition_of_done: "Definition of Done" definition_of_done: "Definition of Done"
generating_chart: "Generiere Graph..." generating_chart: "Generiere Graph..."

@ -66,7 +66,7 @@ en:
card_paper_size: "Paper size for card printing" card_paper_size: "Paper size for card printing"
chart_options: "Active series" chart_options: "Active series"
close: "Close" close: "Close"
column_with: "Column width:" column_width: "Column width:"
date: "Day" date: "Day"
definition_of_done: "Definition of Done" definition_of_done: "Definition of Done"
generating_chart: "Generating Graph..." generating_chart: "Generating Graph..."

Loading…
Cancel
Save