Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/themes/CleanFS/templates/myprofile.tpl
blob: 5118dcb0385b5007a92d80f4e3106362d6b69930 (plain)
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
<div class="box"><h3><?= eL('editmydetails') ?></h3>
<ul class="form_elements">
<li title="<?= eL('usernamenotchangeable') ?>">
<label><?= eL('username') ?></label>
<input type="text" style="border:none;background:none;width:auto;" disabled="disabled" value="<?= $user->infos['user_name'] ?>" />
</li>
</ul>
<?php $this->display('common.profile.tpl'); ?>
</div>
<div class="box"><h3><?= L('myvotes') ?></h3>
<?php if(count($votes)>0): ?>
<table id="myvotes">
<thead>
<tr>
<th><?= eL('project') ?></th>
<th><?= eL('task') ?></th>
<th><?= eL('removevote') ?></th>
</tr>   
</thead>
<tbody>
<?php foreach($votes as $vote): ?>
<tr<?php echo $vote['is_closed'] ? ' class="closed"':''; ?>>
<td><?php echo $vote['project_title']; ?></td>
<td><?php echo tpl_tasklink($vote); ?></td> 
<td><?php echo tpl_form(Filters::noXSS(createURL('myprofile', $vote['task_id'])));?>
<input type="hidden" name="action" value="removevote" />
<input type="hidden" name="task_id" value="<?php echo $vote['task_id']?>" />
<button type="submit" title="<?php echo eL('removevote'); ?>"><span class="fa fa-trash"></span></button>
</form></td>
<td></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php else:
  echo eL('novotes');
endif; ?>
</div>
<div class="box"><h3><?php echo eL('permissionsforproject').' '.$proj->prefs['project_title']; ?></h3><?php echo tpl_draw_perms($user->perms); ?></div>
<div class="clear"></div>