Skip to content

Commit

Permalink
Use class in template instead col tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem Bazykin committed Feb 14, 2017
1 parent 4dcbf7d commit f8098d5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 21 deletions.
14 changes: 7 additions & 7 deletions ckan/public/base/less/group.less
Expand Up @@ -36,26 +36,26 @@
}
}

colgroup {
.group-org-members {
@media (min-width: 320px) and (max-width: 479px) {
col:first-child {
.col-user {
width: 43%;
}
col + col {
.col-role {
width: 31%;
}
col + col + col {
.col-actions {
width: 36%;
}
}
@media (min-width: 480px) {
col:first-child {
.col-user {
width: 55%;
}
col + col {
.col-role {
width: 25%;
}
col + col + col {
.col-actions {
width: 20%;
}
}
Expand Down
11 changes: 4 additions & 7 deletions ckan/templates/group/members.html
Expand Up @@ -8,15 +8,12 @@

{% block primary_content_inner %}
<h3 class="page-heading">{{ _('{0} members'.format(c.members|length)) }}</h3>
<table class="table table-header table-hover table-bordered" id="member-table">
<col width="70" />
<col width="40" />
<col width="20" />
<table class="table table-header table-hover table-bordered group-org-members" id="member-table">
<thead>
<tr>
<th scope="col">{{ _('User') }}</th>
<th scope="col">{{ _('Role') }}</th>
<th scope="col"></th>
<th class="col-user">{{ _('User') }}</th>
<th class="col-role">{{ _('Role') }}</th>
<th class="col-actions"></th>
</tr>
</thead>
<tbody>
Expand Down
11 changes: 4 additions & 7 deletions ckan/templates/organization/members.html
Expand Up @@ -11,15 +11,12 @@

{% block primary_content_inner %}
<h3 class="page-heading">{{ _('{0} members'.format(c.members|length)) }}</h3>
<table class="table table-header table-hover table-bordered">
<col width="70" />
<col width="40" />
<col width="20" />
<table class="table table-header table-hover table-bordered group-org-members">
<thead>
<tr>
<th scope="col">{{ _('User') }}</th>
<th scope="col">{{ _('Role') }}</th>
<th scope="col"></th>
<th class="col-user">{{ _('User') }}</th>
<th class="col-role">{{ _('Role') }}</th>
<th class="col-actions"></th>
</tr>
</thead>
<tbody>
Expand Down

0 comments on commit f8098d5

Please sign in to comment.