We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 454d216a authored by tobyink's avatar tobyink

group joining/leaving

parent 6f6943d9
......@@ -33,9 +33,14 @@ if (! $_GET['group'])
$group = new Group($_GET['group']);
if ($_GET['action'])
if ($_GET['action'] && $_SESSION['user']->name)
print "Need to perform action " . htmlentities($_GET['action']);
if ($_GET['action'] == 'join')
elseif ($_GET['action'] == 'leave')
header("Location: " . $group->getURL());
......@@ -9,6 +9,7 @@
<img src="{$avatar|escape:'html':'UTF-8'}" alt="avatar" class="photo" width="64" height="64" />
{if $logged_in}
{if $ismember}
{if $isowner}
<a class="edit" href="{$link_edit}">[edit]</a>
......@@ -18,12 +19,16 @@
<a class="edit" href="{$link_join}">[join]</a>
<span class="fn" property="foaf:name">{$fullname|escape:'html':'UTF-8'}</span>
(<span class="nickname" property="foaf:nick">{$group|escape:'html':'UTF-8'}</span>)
<br />
{if $homepage}<a class="url" rel="foaf:page" href="{$homepage|escape:'html':'UTF-8'}">{$homepage|escape:'html':'UTF-8'}</a>{/if}
<p class="note" property="dc:abstract">{$bio|escape:'html':'UTF-8'}</p>
<dd>{if $homepage}<a class="url" rel="foaf:page" href="{$homepage|escape:'html':'UTF-8'}">{$homepage|escape:'html':'UTF-8'}</a>{/if}</dd>
<dd class="note" property="dc:abstract">{$bio|escape:'html':'UTF-8'}</dd>
<hr style="border: 1px solid transparent; clear: both;" rel="foaf:page" rev="foaf:primaryTopic" resource="" />
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment