Skip to content

Commit 050a448

Browse files
ishikawa999Redmine Patch Meetup
authored and
Redmine Patch Meetup
committed
Change .next-prev-links spanをボタン化
1 parent fac2633 commit 050a448

File tree

2 files changed

+20
-11
lines changed

2 files changed

+20
-11
lines changed

app/views/issues/show.html.erb

+8-4
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,27 @@
99
<div class="<%= @issue.css_classes %> details">
1010
<% if @prev_issue_id || @next_issue_id %>
1111
<div class="next-prev-links contextual">
12-
<%= link_to_if @prev_issue_id,
12+
<span class="previous">
13+
<%= link_to_if @prev_issue_id,
1314
"\xc2\xab #{l(:label_previous)}",
1415
(@prev_issue_id ? issue_path(@prev_issue_id) : nil),
1516
:title => "##{@prev_issue_id}",
16-
:accesskey => accesskey(:previous) %> |
17+
:accesskey => accesskey(:previous) %>
18+
</span>
1719
<% if @issue_position && @issue_count %>
1820
<span class="position">
1921
<%= link_to_if @query_path,
2022
l(:label_item_position, :position => @issue_position, :count => @issue_count),
2123
@query_path %>
22-
</span> |
24+
</span>
2325
<% end %>
24-
<%= link_to_if @next_issue_id,
26+
<span class="next">
27+
<%= link_to_if @next_issue_id,
2528
"#{l(:label_next)} \xc2\xbb",
2629
(@next_issue_id ? issue_path(@next_issue_id) : nil),
2730
:title => "##{@next_issue_id}",
2831
:accesskey => accesskey(:next) %>
32+
</span>
2933
</div>
3034
<% end %>
3135

public/stylesheets/application.css

+12-7
Original file line numberDiff line numberDiff line change
@@ -745,12 +745,15 @@ textarea#custom_field_default_value {width: 95%; resize:vertical}
745745
input#content_comments {width: 99%}
746746

747747
span.pagination {margin-left:3px; color:#888; display:block;}
748-
.pagination ul.pages {
748+
.pagination ul.pages, .next-prev-links {
749749
margin: 0 5px 0 0;
750750
padding: 0;
751751
display: inline;
752752
}
753-
.pagination ul.pages li {
753+
div.next-prev-links.contextual span {
754+
margin-left: -5px;
755+
}
756+
.pagination ul.pages li, .next-prev-links span {
754757
display: inline-block;
755758
padding: 0;
756759
border: 1px solid #ddd;
@@ -761,14 +764,14 @@ span.pagination {margin-left:3px; color:#888; display:block;}
761764
text-align: center;
762765
}
763766
.pagination ul.pages li a,
764-
.pagination ul.pages li span {
767+
.pagination ul.pages li span, .next-prev-links span a {
765768
padding: 3px 8px;
766769
}
767-
.pagination ul.pages li:first-child {
770+
.pagination ul.pages li:first-child, .next-prev-links span:first-child {
768771
border-top-left-radius: 4px;
769772
border-bottom-left-radius: 4px;
770773
}
771-
.pagination ul.pages li:last-child {
774+
.pagination ul.pages li:last-child, .next-prev-links span:last-child {
772775
border-top-right-radius: 4px;
773776
border-bottom-right-radius: 4px;
774777
}
@@ -777,11 +780,13 @@ span.pagination {margin-left:3px; color:#888; display:block;}
777780
background-color: #628DB6;
778781
border-color: #628DB6;
779782
}
780-
.pagination ul.pages li.page:hover {
783+
.pagination ul.pages li.page:hover, .next-prev-links span:hover {
781784
background-color: #ddd;
782785
}
783786
.pagination ul.pages li.page a:hover,
784-
.pagination ul.pages li.page a:active {
787+
.pagination ul.pages li.page a:active,
788+
.next-prev-links span a:hover,
789+
.next-prev-links span a:active{
785790
color: #169;
786791
text-decoration: inherit;
787792
}

0 commit comments

Comments
 (0)