Improve project user page
This commit is contained in:
@@ -70,7 +70,7 @@
|
|||||||
<?php if ($this->user->hasAccess('projectuser', 'managers')): ?>
|
<?php if ($this->user->hasAccess('projectuser', 'managers')): ?>
|
||||||
<td>
|
<td>
|
||||||
<i class="fa fa-users fa-fw"></i>
|
<i class="fa fa-users fa-fw"></i>
|
||||||
<a href="#" class="tooltip" title="<?= t('Members') ?>" data-href="<?= $this->url->href('Projectuser', 'users', array('project_id' => $project['id'])) ?>"><?= t('Members') ?></a>
|
<span class="tooltip" title="<?= t('Members') ?>" data-href="<?= $this->url->href('Projectuser', 'users', array('project_id' => $project['id'])) ?>"><?= t('Members') ?></span>
|
||||||
</td>
|
</td>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<td class="dashboard-project-stats">
|
<td class="dashboard-project-stats">
|
||||||
|
|||||||
@@ -1,14 +1,16 @@
|
|||||||
<?php if (empty($users)): ?>
|
<?php if (empty($users)): ?>
|
||||||
<p><?= t('There is no project member.') ?></p>
|
<p><?= t('There is no project member.') ?></p>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
|
<table>
|
||||||
<?php foreach ($roles as $role => $role_name): ?>
|
<?php foreach ($roles as $role => $role_name): ?>
|
||||||
<?php if (isset($users[$role])): ?>
|
<?php if (isset($users[$role])): ?>
|
||||||
<strong><?= $role_name ?></strong>
|
<tr><th><?= $role_name ?></th></tr>
|
||||||
<ul>
|
|
||||||
<?php foreach ($users[$role] as $user_id => $user): ?>
|
<?php foreach ($users[$role] as $user_id => $user): ?>
|
||||||
<li><?= $this->url->link($this->text->e($user), 'Projectuser', 'opens', array('user_id' => $user_id)) ?></li>
|
<tr><td>
|
||||||
<?php endforeach ?>
|
<?= $this->url->link($this->text->e($user), 'Projectuser', 'opens', array('user_id' => $user_id)) ?>
|
||||||
</ul>
|
</td></tr>
|
||||||
<?php endif ?>
|
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
<?php endforeach ?>
|
||||||
|
</table>
|
||||||
|
<?php endif ?>
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -41,53 +41,53 @@
|
|||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar a {
|
.sidebar > ul a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: #999;
|
color: #999;
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar a:hover {
|
.sidebar > ul a:hover {
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar li {
|
.sidebar > ul li {
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
line-height: 35px;
|
line-height: 35px;
|
||||||
border-bottom: 1px dotted #efefef;
|
border-bottom: 1px dotted #efefef;
|
||||||
padding-left: 13px;
|
padding-left: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar li:hover {
|
.sidebar > ul li:hover {
|
||||||
border-left: 5px solid #555;
|
border-left: 5px solid #555;
|
||||||
padding-left: 8px;
|
padding-left: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar li.active {
|
.sidebar > ul li.active {
|
||||||
border-left: 5px solid #333;
|
border-left: 5px solid #333;
|
||||||
padding-left: 8px;
|
padding-left: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar li.active a {
|
.sidebar > ul li.active a {
|
||||||
color: #333;
|
color: #333;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-icons li {
|
.sidebar-icons > ul li {
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-icons li:hover,
|
.sidebar-icons > ul li:hover,
|
||||||
.sidebar-icons li.active {
|
.sidebar-icons > ul li.active {
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
border-left: none;
|
border-left: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar li.active a:focus,
|
.sidebar > ul li.active a:focus,
|
||||||
.sidebar li.active a:hover {
|
.sidebar > ul li.active a:hover {
|
||||||
color: #555;
|
color: #555;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar li:last-child {
|
.sidebar > ul li:last-child {
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user