Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/themes/CleanFS/templates/profile.tpl
blob: 2c828ef72866bc8ed9f61f130e487da4b556f558 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<fieldset class="box"><legend><?php echo Filters::noXSS(L('profile')); ?> <?php echo Filters::noXSS($theuser->infos['real_name']); ?> (<?php echo Filters::noXSS($theuser->infos['user_name']); ?>)</legend>
<table id="profile">
  <tr>
    <th><?php echo Filters::noXSS(L('realname')); ?></th>
    <td><?php echo Filters::noXSS($theuser->infos['real_name']); ?></td>
  </tr>
  <?php if ((!$user->isAnon() && !$fs->prefs['hide_emails'] && !$theuser->infos['hide_my_email']) || $user->perms('is_admin')): ?>
  <tr>
    <th><?php echo Filters::noXSS(L('emailaddress')); ?></th>
    <td><a href="mailto:<?php echo Filters::noXSS($theuser->infos['email_address']); ?>"><?php echo Filters::noXSS($theuser->infos['email_address']); ?></a></td>
  </tr>
  <?php endif; ?>
  <?php if (!empty($fs->prefs['jabber_server']) && (( !$user->isAnon() && !$fs->prefs['hide_emails'] && !$theuser->infos['hide_my_email']) || $user->perms('is_admin')) ): ?>
  <tr>
    <th><?php echo Filters::noXSS(L('jabberid')); ?></th>
    <td><?php echo Filters::noXSS($theuser->infos['jabber_id']); ?></td>
  </tr>
  <?php endif; ?>
  <tr>
    <th><?php echo Filters::noXSS(L('globalgroup')); ?></th>
    <td><?php echo Filters::noXSS($groups[Flyspray::array_find('group_id', $theuser->infos['global_group'], $groups)]['group_name']); ?></td>
  </tr>
  <?php if ($proj->id): ?>
  <tr>
    <th><?php echo Filters::noXSS(L('projectgroup')); ?></th>
    <td>
    <?php if ($user->perms('manage_project')): ?>
    <?php echo tpl_form(Filters::noXSS($baseurl).'index.php?do=user&amp;id='.Filters::noXSS($theuser->id)); ?>
      <select id="projectgroupin" class="adminlist" name="project_group_in">
        <?php $sel = $theuser->perms('project_group') == '' ? 0 : $theuser->perms('project_group'); ?>
        <?php echo tpl_options(array_merge($project_groups, array(0 => array('group_name' => L('none'), 0 => 0, 'group_id' => 0, 1 => L('none')))), $sel); ?>
      </select>
      <input type="hidden" name="old_group_id" value="<?php echo Filters::noXSS($theuser->perms('project_group')); ?>" />
      <input type="hidden" name="action" value="admin.edituser" />
      <input type="hidden" name="user_id" value="<?php echo Filters::noXSS($theuser->id); ?>" />
      <input type="hidden" name="project_id" value="<?php echo $proj->id; ?>" />
      <input type="hidden" name="onlypmgroup" value="1" />
      <button type="submit"><?php echo Filters::noXSS(L('update')); ?></button>
    </form>
    <?php else: ?>
      <?php if ($theuser->perms('project_group')): ?>
      <?php echo Filters::noXSS($project_groups[Flyspray::array_find('group_id', $theuser->perms('project_group'), $project_groups)]['group_name']); ?>
      <?php else: ?>
      <?php echo Filters::noXSS(L('none')); ?>
      <?php endif; ?>
    <?php endif; ?>
    </td>
  </tr>
  <?php endif; ?>
  <tr>
    <th><a href="<?php echo CreateURL('tasklist', 0, null, array('opened'=>$theuser->id, 'status[]'=>'')); ?>"><?php echo Filters::noXSS(L('tasksopened')); ?></a></th>
    <td><a href="<?php echo CreateURL('tasklist', 0, null, array('opened'=>$theuser->id, 'status[]'=>'')); ?>"><?php echo Filters::noXSS($tasks); ?></a></td>
  </tr>
  <tr>
    <th><a href="<?php echo CreateURL('tasklist', 0, null, array('dev'=>$theuser->id)); ?>"><?php echo Filters::noXSS(L('assignedto')); ?></a></th>
    <td><a href="<?php echo CreateURL('tasklist', 0, null, array('dev'=>$theuser->id)); ?>"><?php echo Filters::noXSS($assigned); ?></a></td>
  </tr>
  <tr>
    <th><?php echo Filters::noXSS(L('comments')); ?></th>
    <td><?php echo Filters::noXSS($comments); ?></td>
  </tr>
  <?php if ($theuser->infos['register_date']): ?>
  <tr>
    <th><?php echo Filters::noXSS(L('regdate')); ?></th>
    <td><?php echo Filters::noXSS(formatDate($theuser->infos['register_date'])); ?></td>
  </tr>
  <?php endif; ?>
</table>
</fieldset>
<div><?php if($user->perms('is_admin')): ?><a href="<?php echo CreateURL('edituser', $theuser->id); ?>" class="button"><?php echo L('edituser'); ?></a><?php endif; ?></div>