Skip to content

Commit

Permalink
update hr style
Browse files Browse the repository at this point in the history
  • Loading branch information
bai1024 committed Aug 23, 2024
1 parent 728ab2c commit 94e9891
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
9 changes: 8 additions & 1 deletion promgen/static/css/promgen.css
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,14 @@ a[rel]:after {
justify-content: space-between;
}

.dropdown-menu > li > form > button {

/* service-action-button-group */
.service-action-button-group hr {
margin-top: 5px !important;
margin-bottom: 5px !important;
}

.service-action-button-group > .dropdown-menu > li > form > button {
padding: 3px 20px;
white-space: nowrap;
background: none;
Expand Down
19 changes: 11 additions & 8 deletions promgen/templates/promgen/service_action_button_group.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,34 @@
{% load promgen %}


<div style="display: inline-block;">
<div style="display: inline-block;" class="service-action-button-group">
<div class="btn-group btn-group-sm" role="group" aria-label="...">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{% translate "Actions" %} <span class="caret"></span>
</button>
<ul class="dropdown-menu">

<li>
<form action="{% url 'service-notifier' service.id %}" style="display:inline" method="post" v-pre>{% csrf_token %}
<input type="hidden" name="sender" value="promgen.notification.user">
<input type="hidden" name="value" value="{{request.user.username}}" />
<button>{% translate "Subscribe to Notifications" %}</button>
<a href="">
<form action="{% url 'service-notifier' service.id %}" style="display:inline" method="post" v-pre>{% csrf_token %}
<input type="hidden" name="sender" value="promgen.notification.user">
<input type="hidden" name="value" value="{{request.user.username}}" />
<button style="background:none;border:none;padding:0;">{% translate "Subscribe to Notifications" %}</button>
</form>
</a>
</li>

<li role="separator" class="divider"></li>
<hr>

<li role="presentation"><a href="{% urlqs 'audit-list' service=service.id %}">{% translate "Edit History" %}</a></li>
<li role="presentation"><a href="{% urlqs 'alert-list' service=service.name %}">{% translate "Alert History" %}</a></li>

<li role="separator" class="divider"></li>
<hr>

<li role="presentation"><a href="{% url 'api:service-rules' name=service.name %}">{% translate "Export Rules" %}</a></li>
<li role="presentation"><a href="{% url 'api:service-targets' name=service.name %}">{% translate "Export Service" %}</a></li>

<li role="separator" class="divider"></li>
<hr>

<li role="presentation">
<a href="">
Expand Down

0 comments on commit 94e9891

Please sign in to comment.