diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 132b43039..fc9e0b29b 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -39,7 +39,7 @@ jobs: password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and push - uses: docker/build-push-action@v6.5.0 + uses: docker/build-push-action@v6.7.0 with: context: . push: ${{ github.event_name != 'pull_request' }} diff --git a/promgen/locale/ja/LC_MESSAGES/django.po b/promgen/locale/ja/LC_MESSAGES/django.po index a13701c8f..c06544ec7 100644 --- a/promgen/locale/ja/LC_MESSAGES/django.po +++ b/promgen/locale/ja/LC_MESSAGES/django.po @@ -172,3 +172,7 @@ msgstr "Serviceを登録" #: templates/promgen/project_detail_hosts.html:49 msgid "Silence selected hosts" msgstr "選択したHostをSilence" + +#: templates/promgen/service_detail.html:23 +msgid "Actions" +msgstr "Actions" diff --git a/promgen/static/css/promgen.css b/promgen/static/css/promgen.css index d106ccbc3..f01ae226c 100644 --- a/promgen/static/css/promgen.css +++ b/promgen/static/css/promgen.css @@ -81,6 +81,29 @@ a[rel]:after { cursor: pointer; } + +/* service-detail */ +.promgen-flex-space-between-center { + display: flex; + align-items: center; + justify-content: space-between; +} + + +/* service-action-button-group */ +.service-action-button-group { + hr { + margin-top: 5px !important; + margin-bottom: 5px !important; + } + .dropdown-menu > li > form > button { + padding: 3px 20px; + white-space: nowrap; + background: none; + border: none; + } +} + /* Margin Top */ .mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 0.25rem !important; } diff --git a/promgen/templates/promgen/service_action_button_group.html b/promgen/templates/promgen/service_action_button_group.html new file mode 100644 index 000000000..1b478d3f1 --- /dev/null +++ b/promgen/templates/promgen/service_action_button_group.html @@ -0,0 +1,44 @@ +{% load i18n %} +{% load promgen %} + +
diff --git a/promgen/templates/promgen/service_block.html b/promgen/templates/promgen/service_block.html index 441752edd..5e99b51b7 100644 --- a/promgen/templates/promgen/service_block.html +++ b/promgen/templates/promgen/service_block.html @@ -35,73 +35,25 @@Project | -Exporters | -Notifiers | -Actions | -
---|---|---|---|
- - {% trans "No notifications configured for this project. Please configure some" %} - | -|||
No Projects? | -
{% trans 'Contact' %}: {{service.owner.username}}
- {% endif %} +{% translate 'Contact' %}: {{service.owner.username}}
+ {% endif %} +Project | +Exporters | +Notifiers | +Actions | +
---|---|---|---|
+ + {% translate "No notifications configured for this project. Please configure some" %} + | +|||
No Projects? | +