Changed the styling of organisation labels (Fixes #5)
- Admins are green - Members are white - Pending members are yellow - Pending organisations are grey background
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
.organisation-admin {
|
.organisation-admin {
|
||||||
color: #ffc107 !important;
|
color: #56d773 !important;
|
||||||
|
}
|
||||||
|
.organisation-pending {
|
||||||
|
background-color: #6c757d !important;
|
||||||
|
}
|
||||||
|
.membership-pending {
|
||||||
|
color: #ffd24a !important;
|
||||||
}
|
}
|
||||||
@@ -86,7 +86,7 @@
|
|||||||
{{#if row.organisations.length }}
|
{{#if row.organisations.length }}
|
||||||
<td style="line-height: 2em;">
|
<td style="line-height: 2em;">
|
||||||
{{#each row.organisations }}
|
{{#each row.organisations }}
|
||||||
<a href="{% endverbatim %}{{site.uri.public}}{% verbatim %}/organisations/o/{{this.slug}}" class="label label-primary {{#if this.pivot.flag_admin }}organisation-admin{{/if}}" title="{{this.description}}" data-text="{{this.name}}" style="font-size: 100%;">{{this.name}}</a><br>
|
<a href="{% endverbatim %}{{site.uri.public}}{% verbatim %}/organisations/o/{{this.slug}}" class="label bg-primary {{#ifx this.pivot.flag_approved '!=' 1 }}membership-pending{{/ifx}} {{#ifx this.flag_approved '!=' 1 }}organisation-pending{{/ifx}} {{#if this.pivot.flag_admin }}organisation-admin{{/if}}" title="{{this.description}}" data-text="{{this.name}}" style="font-size: 100%;">{{this.name}}</a><br>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</td>
|
</td>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
|
|||||||
Reference in New Issue
Block a user