File tree Expand file tree Collapse file tree 4 files changed +50
-12
lines changed Expand file tree Collapse file tree 4 files changed +50
-12
lines changed Original file line number Diff line number Diff line change @@ -1293,7 +1293,6 @@ div.httpexchange div.highlight pre {
1293
1293
1294
1294
1295
1295
/* Subprojects */
1296
-
1297
1296
div .module .project-subprojects li .subproject a .subproject-url : before {
1298
1297
padding-right : .5em ;
1299
1298
font-family : FontAwesome;
@@ -1307,14 +1306,6 @@ div.module.project-subprojects li.subproject a.subproject-edit:before {
1307
1306
content : "\f044" ;
1308
1307
}
1309
1308
1310
- /* Automation Rules */
1311
-
1312
- li .automation-rule input [type = "submit" ] {
1313
- font-family : FontAwesome;
1314
- font-weight : normal;
1315
- }
1316
-
1317
-
1318
1309
/* Pygments */
1319
1310
div .highlight pre .hll { background-color : # ffffcc }
1320
1311
div .highlight pre .c { color : # 60a0b0 ; font-style : italic } /* Comment */
Original file line number Diff line number Diff line change 16
16
}
17
17
}
18
18
}
19
+
20
+ // Automation rules
21
+ #content .module-list.automation-rules .automation-rule button {
22
+ margin : .25em ;
23
+
24
+ > span {
25
+ display : none ;
26
+ }
27
+
28
+ & :before {
29
+ font-family : FontAwesome;
30
+ font-weight : normal ;
31
+ }
32
+
33
+ & .automation-rule-up :before {
34
+ content : " \f062 " ;
35
+ }
36
+
37
+ & .automation-rule-down :before {
38
+ content : " \f063 " ;
39
+ }
40
+ }
Original file line number Diff line number Diff line change 13
13
display : inline-block;
14
14
margin : 1em 0em 0em 0em ;
15
15
}
16
+ # content .module-list .automation-rules .automation-rule button {
17
+ margin : .25em ;
18
+ }
19
+ # content .module-list .automation-rules .automation-rule button > span {
20
+ display : none;
21
+ }
22
+ # content .module-list .automation-rules .automation-rule button : before {
23
+ font-family : FontAwesome;
24
+ font-weight : normal;
25
+ }
26
+ # content .module-list .automation-rules .automation-rule button .automation-rule-up : before {
27
+ content : "\f062" ;
28
+ }
29
+ # content .module-list .automation-rules .automation-rule button .automation-rule-down : before {
30
+ content : "\f063" ;
31
+ }
Original file line number Diff line number Diff line change 1
1
{% extends "projects/project_edit_base.html" %}
2
2
3
3
{% load i18n %}
4
+ {% load static %}
4
5
5
6
{% block title %}{% trans "Automation Rules" %}{% endblock %}
6
7
8
+ {% block extra_links %}
9
+ < link rel ="stylesheet " type ="text/css " href ="{% static "projects /css/admin.css" %}" />
10
+ {% endblock %}
11
+
7
12
{% block nav-dashboard %} class="active"{% endblock %}
8
13
9
14
{% block project-automation-rules-active %}active{% endblock %}
30
35
</ ul >
31
36
</ div >
32
37
33
- < div class ="module-list ">
38
+ < div class ="module-list automation-rules ">
34
39
< div class ="module-list-wrapper ">
35
40
< ul >
36
41
{% for rule in object_list %}
46
51
< li class ="automation-rule ">
47
52
< form method ="post " action ="{% url 'projects_automation_rule_move' project_slug=project.slug automation_rule_pk=rule.pk steps=-1 %} ">
48
53
{% csrf_token %}
49
- < input aria-label ="{% trans 'Move up' %} " title ="{% trans 'Move up' %} " type ="submit " value =" ">
54
+ < button aria-label ="{% trans 'Move up' %} " title ="{% trans 'Move up' %} " class ="automation-rule-up ">
55
+ < span > {% trans 'Move up' %}</ span >
56
+ </ button >
50
57
</ form >
51
58
</ li >
52
59
{% endif %}
55
62
< li class ="automation-rule ">
56
63
< form method ="post " action ="{% url 'projects_automation_rule_move' project_slug=project.slug automation_rule_pk=rule.pk steps=1 %} ">
57
64
{% csrf_token %}
58
- < input aria-label ="{% trans 'Move down' %} " title ="{% trans 'Move down' %} " type ="submit " value =" ">
65
+ < button aria-label ="{% trans 'Move down' %} " title ="{% trans 'Move down' %} " class ="automation-rule-down ">
66
+ < span > {% trans 'Move down' %}</ span >
67
+ </ button >
59
68
</ form >
60
69
</ li >
61
70
{% endif %}
You can’t perform that action at this time.
0 commit comments