Quellcode durchsuchen

Use the new pagination style for the calendars view (#27346).

Patch by Bernhard Rohloff.


git-svn-id: https://svn.redmine.org/redmine/trunk@22235 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/5.1.0
Go MAEDA vor 1 Jahr
Ursprung
Commit
006c6a4e01

+ 9
- 3
app/views/calendars/show.html.erb Datei anzeigen

@@ -15,9 +15,15 @@
</fieldset>
</div>

<p class="contextual">
<%= link_to_previous_month(@year, @month, :accesskey => accesskey(:previous)) %> | <%= link_to_next_month(@year, @month, :accesskey => accesskey(:next)) %>
</p>
<span class="contextual pagination">
<ul class="pages">
<li class="previous page">
<%= link_to_previous_month(@year, @month, :accesskey => accesskey(:previous)) %>
</li><li class="next page">
<%= link_to_next_month(@year, @month, :accesskey => accesskey(:next)) %>
</li>
</ul>
</span>

<p class="buttons">
<%= label_tag('month', l(:label_month)) %>

+ 1
- 0
public/stylesheets/application.css Datei anzeigen

@@ -1116,6 +1116,7 @@ table.cal .starting a.issue, p.cal.legend .starting {background: url(../images/b
table.cal .ending a.issue, p.cal.legend .ending {background: url(../images/bullet_end.png) no-repeat -1px -2px; padding-left:16px;}
table.cal .starting.ending a.issue, p.cal.legend .starting.ending {background: url(../images/bullet_diamond.png) no-repeat -1px -2px; padding-left:16px;}
p.cal.legend span {display:block;}
.controller-calendars p.buttons {margin-top: unset;}

/***** Tooltips ******/
.tooltip{position:relative;z-index:24;}

+ 1
- 1
test/functional/calendars_controller_test.rb Datei anzeigen

@@ -57,7 +57,7 @@ class CalendarsControllerTest < Redmine::ControllerTest
assert_select 'div#query_form_content' do
assert_select 'fieldset#filters.collapsible'
end
assert_select 'p.contextual'
assert_select 'span.contextual.pagination'
assert_select 'p.buttons'
end
end

Laden…
Abbrechen
Speichern