Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 79a48c8

Browse filesBrowse files
committed
adjust direction based on context
1 parent 5a9b82a commit 79a48c8
Copy full SHA for 79a48c8

File tree

3 files changed

+6
-4
lines changed
Filter options

3 files changed

+6
-4
lines changed

‎media/commitfest/css/commitfest.css

Copy file name to clipboardExpand all lines: media/commitfest/css/commitfest.css
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ div.form-group div.controls input.threadpick-input {
3737
display: inline;
3838
}
3939

40-
.dropdown-menu__up {
40+
.dropdown-menu--up {
4141
top: initial;
4242
bottom: 100%;
4343
}

‎pgcommitfest/commitfest/templates/patch.html

Copy file name to clipboardExpand all lines: pgcommitfest/commitfest/templates/patch.html
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,9 @@ <h4>Annotations</h4>
183183
</tbody>
184184
</table>
185185

186+
{% with dropdown_mode="dropdown-menu--up" %}
186187
{%include "patch_commands.inc"%}
188+
{% endwith %}
187189

188190
{%comment%}commit dialog{%endcomment%}
189191
<div class="modal fade" id="commitModal" role="dialog">

‎pgcommitfest/commitfest/templates/patch_commands.inc

Copy file name to clipboardExpand all lines: pgcommitfest/commitfest/templates/patch_commands.inc
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33

44
<div class="btn-group">
55
<a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#">Comment/Review <span class="caret"></span></a>
6-
<ul class="dropdown-menu dropdown-menu__up">
6+
<ul class="dropdown-menu {{ dropdown_mode }}">
77
<li><a href="comment/">Comment</a>
88
<li><a href="review/">Review</a>
99
</ul>
1010
</div>
1111

1212
<div class="btn-group">
1313
<a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#">Change Status <span class="caret"></span></a>
14-
<ul class="dropdown-menu dropdown-menu__up" role="menu">
14+
<ul class="dropdown-menu {{ dropdown_mode }}" role="menu">
1515
<li role="presentation" class="dropdown-header">Open statuses</li>
1616
<li role="presentation"><a href="status/review/">Needs review</a></li>
1717
<li role="presentation"><a href="status/author/">Waiting on Author</a></li>
@@ -29,7 +29,7 @@
2929
{%if request.user.is_staff%}
3030
<div class="btn-group">
3131
<a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#">Send private mail <span class="caret"></span></a>
32-
<ul class="dropdown-menu dropdown-menu__up">
32+
<ul class="dropdown-menu {{ dropdown_mode }}">
3333
<li><a href="send_email/?authors={{patch.id}}">Send mail to authors</a></li>
3434
<li><a href="send_email/?reviewers={{patch.id}}">Send mail to reviewers</a></li>
3535
<li><a href="send_email/?authors={{patch.id}}&reviewers={{patch.id}}">Send mail to authors and reviewers</a></li>

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.