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