Skip to content

Commit

Permalink
Merge pull request #83 from barisusakli/master
Browse files Browse the repository at this point in the history
update for group badges
closes #85
  • Loading branch information
pichalite committed Oct 16, 2018
2 parents e1f96aa + 2d92ce3 commit 944d489
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion templates/account/edit.tpl
Expand Up @@ -92,7 +92,7 @@
<div class="form-group fg-line">
<div class="select">
<label for="grouptitle">[[user:grouptitle]]</label>
<select class="form-control" id="groupTitle" data-property="groupTitle">
<select class="form-control" id="groupTitle" data-property="groupTitle" <!-- IF allowMultipleBadges --> multiple<!-- ENDIF allowMutlipleBadges -->>
<option value="">[[user:no-group-title]]</option>
<!-- BEGIN groups -->
<!-- IF groups.userTitleEnabled -->
Expand Down
8 changes: 5 additions & 3 deletions templates/partials/topic/badge.tpl
@@ -1,3 +1,5 @@
<!-- IF posts.user.selectedGroup.slug -->
<a href="{config.relative_path}/groups/{posts.user.selectedGroup.slug}"><small class="label group-label inline-block" style="background-color: {posts.user.selectedGroup.labelColor};"><!-- IF posts.user.selectedGroup.icon --><i class="fa {posts.user.selectedGroup.icon}"></i> <!-- ENDIF posts.user.selectedGroup.icon -->{posts.user.selectedGroup.userTitle}</small></a>
<!-- ENDIF posts.user.selectedGroup.slug -->
<!-- BEGIN posts.user.selectedGroups -->
<!-- IF posts.user.selectedGroups.slug -->
<a href="{config.relative_path}/groups/{posts.user.selectedGroups.slug}"><small class="label group-label inline-block" style="background-color: {posts.user.selectedGroups.labelColor};"><!-- IF posts.user.selectedGroups.icon --><i class="fa {posts.user.selectedGroups.icon}"></i> <!-- ENDIF posts.user.selectedGroups.icon -->{posts.user.selectedGroups.userTitle}</small></a>
<!-- ENDIF posts.user.selectedGroups.slug -->
<!-- END posts.user.selectedGroups -->

0 comments on commit 944d489

Please sign in to comment.