Skip to content

Commit

Permalink
Merge pull request #248 from uccser/release/1.5.4
Browse files Browse the repository at this point in the history
Renaming of 'badge' to 'achievement' shouldn't have happened in some places
  • Loading branch information
JackMorganNZ authored Jun 9, 2020
2 parents 00cf876 + 760fe5d commit 6ff8b42
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion codewof/static/scss/website.scss
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ strong {

// Create achievement CSS rules off colour names
@each $color, $value in $colors {
.achievement-#{$color} {
.badge-#{$color} {
@include badge-variant($value);
}
}
Expand Down
6 changes: 3 additions & 3 deletions codewof/templates/account/email.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ <h1>{% trans "E-mail Addresses" %}</h1>

{{ emailaddress.email }}
{% if emailaddress.verified %}
<span class="achievement achievement-success">{% trans "Verified" %}</span>
<span class="badge badge-success">{% trans "Verified" %}</span>
{% else %}
<span class="achievement achievement-secondary">{% trans "Unverified" %}</span>
<span class="badge badge-secondary">{% trans "Unverified" %}</span>
{% endif %}
{% if emailaddress.primary %}
<span class="achievement achievement-primary">{% trans "Primary" %}</span>
<span class="badge badge-primary">{% trans "Primary" %}</span>
{% endif %}
</label>
</div>
Expand Down
4 changes: 2 additions & 2 deletions codewof/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
<![endif]-->
</head>
{% block body_element %}<body class="py-5">{% endblock body_element %}
{% block body_element %}<body class="pt-5">{% endblock body_element %}
<nav id="codewof-navbar" class="navbar navbar-expand-md navbar-dark fixed-top">
<div class="container">
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse"
Expand All @@ -46,7 +46,7 @@
</a>

{% if DEPLOYMENT_TYPE == 'dev' %}
<span class="achievement achievement-warning">Test server</span>
<span class="badge badge-warning">Test server</span>
{% endif %}

<div class="collapse navbar-collapse" id="navbarContent">
Expand Down
2 changes: 1 addition & 1 deletion codewof/templates/research/components/research-card.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="card-body">
<h5 class="card-title">{{ study.title }}
{% if study.registered %}
<span class="achievement achievement-success float-right">Registered</span>
<span class="badge badge-success float-right">Registered</span>
{% endif %}
</h5>
<h6 class="card-subtitle mb-2 text-muted">
Expand Down

0 comments on commit 6ff8b42

Please sign in to comment.