forked from newscoop/theme-GlobalNews
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser_index.tpl
59 lines (47 loc) · 3.58 KB
/
user_index.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{{ config_load file="{{ $gimme->language->english_name }}.conf" }}
{{ include "_tpl/_html-head.tpl" }}
<body>
{{ include "_tpl/responsive-menu.tpl"}}
<div id="main-container" class="snap-content overthrow">
<div class="container">
{{ include "_tpl/header.tpl" }}
<main id="main">
<div class="row">
<div class="col-lg-8 col-md-8">
<h1 class="page-title">{{ #userIndex# }}</h1>
<div id="content" class="community-page">
<ul id="community-tabs" class="nav nav-tabs">
<li id="user-active">
<a href="{{ $view->url(['controller' => 'user', 'action' => 'index'], 'default', true) }}">{{ #active# }}</a>
</li>
<li id="user-all"><a href="{{ $view->url(['controller' => 'user', 'action' => 'filter', 'f' => 'a-z'], 'default', true) }}">{{ #all# }}</a></li>
<li id="user-ad"><a href="{{ $view->url(['controller' => 'user', 'action' => 'filter', 'f' => 'a-d'], 'default', true) }}">A-D</a></li>
<li id="user-ek"><a href="{{ $view->url(['controller' => 'user', 'action' => 'filter', 'f' => 'e-k'], 'default', true) }}">E-K</a></li>
<li id="user-lp"><a href="{{ $view->url(['controller' => 'user', 'action' => 'filter', 'f' => 'l-p'], 'default', true) }}">L-P</a></li>
<li id="user-qt"><a href="{{ $view->url(['controller' => 'user', 'action' => 'filter', 'f' => 'q-t'], 'default', true) }}">Q-T</a></li>
<li id="user-uz"><a href="{{ $view->url(['controller' => 'user', 'action' => 'filter', 'f' => 'u-z'], 'default', true) }}">U-Z</a></li>
<li id="user-editors"><a href="{{ $view->url(['controller' => 'user', 'action' => 'editors'], 'default', true) }}">{{ #editors# }}</a></li>
</ul>
<div class="list-group">
{{ foreach $users as $user }}
<a href="{{ $view->url(['username' => $user->uname], 'user') }}" class="list-group-item">
{{ if !$user->is_active }}
<img width="60" height="60" src="{{ url static_file="_img/avatar-list.png" }}" class="avatar" />
{{ else if $user->image() }}
<img src="{{ $user->image(60, 60) }}" class="avatar" />
{{ else }}
<img width="60" height="60" src="{{ url static_file="_img/avatar-list.png" }}" class="avatar" />
{{ /if }}
<span class="name">{{ $user->first_name }} {{ $user->last_name }}</span>
<span class="member">{{ #memberSince# }} <time datetime="{{ $user->created|date_format:'%d %B %Y' }}">{{ $user->created|date_format:"%d %B %Y" }}</time></span>
</a>
{{ /foreach }}
</div>
</div>
<!-- End Content -->
</div>
{{ include "_tpl/sidebar-community.tpl" }}
</div>
</main>
{{ include "_tpl/footer.tpl" }}
{{ include "_tpl/_html-footer.tpl" }}