diff --git a/media/css/core.css b/media/css/core.css index 0375ed2b850..f1d10169f36 100644 --- a/media/css/core.css +++ b/media/css/core.css @@ -1293,7 +1293,6 @@ div.httpexchange div.highlight pre { /* Subprojects */ - div.module.project-subprojects li.subproject a.subproject-url:before { padding-right: .5em; font-family: FontAwesome; @@ -1307,14 +1306,6 @@ div.module.project-subprojects li.subproject a.subproject-edit:before { content: "\f044"; } -/* Automation Rules */ - -li.automation-rule input[type="submit"] { - font-family: FontAwesome; - font-weight: normal; -} - - /* Pygments */ div.highlight pre .hll { background-color: #ffffcc } div.highlight pre .c { color: #60a0b0; font-style: italic } /* Comment */ diff --git a/readthedocs/projects/static-src/projects/css/admin.less b/readthedocs/projects/static-src/projects/css/admin.less index f3a0eb2f174..94cdd56b340 100644 --- a/readthedocs/projects/static-src/projects/css/admin.less +++ b/readthedocs/projects/static-src/projects/css/admin.less @@ -16,3 +16,25 @@ } } } + +// Automation rules +#content .module-list.automation-rules .automation-rule button { + margin: .25em; + + > span { + display: none; + } + + &:before { + font-family: FontAwesome; + font-weight: normal; + } + + &.automation-rule-up:before { + content: "\f062"; + } + + &.automation-rule-down:before { + content: "\f063"; + } +} diff --git a/readthedocs/projects/static/projects/css/admin.css b/readthedocs/projects/static/projects/css/admin.css index d2445f763d6..bf33d1ffdf9 100644 --- a/readthedocs/projects/static/projects/css/admin.css +++ b/readthedocs/projects/static/projects/css/admin.css @@ -13,3 +13,19 @@ display: inline-block; margin: 1em 0em 0em 0em; } +#content .module-list.automation-rules .automation-rule button { + margin: .25em; +} +#content .module-list.automation-rules .automation-rule button > span { + display: none; +} +#content .module-list.automation-rules .automation-rule button:before { + font-family: FontAwesome; + font-weight: normal; +} +#content .module-list.automation-rules .automation-rule button.automation-rule-up:before { + content: "\f062"; +} +#content .module-list.automation-rules .automation-rule button.automation-rule-down:before { + content: "\f063"; +} diff --git a/readthedocs/templates/builds/versionautomationrule_list.html b/readthedocs/templates/builds/versionautomationrule_list.html index c3d60089bfd..b9f3356b22f 100644 --- a/readthedocs/templates/builds/versionautomationrule_list.html +++ b/readthedocs/templates/builds/versionautomationrule_list.html @@ -1,9 +1,14 @@ {% extends "projects/project_edit_base.html" %} {% load i18n %} +{% load static %} {% block title %}{% trans "Automation Rules" %}{% endblock %} +{% block extra_links %} + +{% endblock %} + {% block nav-dashboard %} class="active"{% endblock %} {% block project-automation-rules-active %}active{% endblock %} @@ -30,7 +35,7 @@ -
+
    {% for rule in object_list %} @@ -46,7 +51,9 @@
  • {% csrf_token %} - +
  • {% endif %} @@ -55,7 +62,9 @@
  • {% csrf_token %} - +
  • {% endif %}