summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorsostler <sbostler@gmail.com>2010-04-11 16:50:40 -0400
committersostler <sbostler@gmail.com>2010-04-11 16:50:40 -0400
commit57c3298cbb88181ab2a9e2dd5309b7a5df6eb30f (patch)
treee9ca474c5a1fa584728b152bf95ac5471943253c /template
parent57be29ee7b7782830cf981d9437b18c88620f8ed (diff)
Initial muting implementation
Diffstat (limited to 'template')
-rw-r--r--template/head.st14
-rw-r--r--template/profile.st5
2 files changed, 18 insertions, 1 deletions
diff --git a/template/head.st b/template/head.st
index e77e454..7bd71ec 100644
--- a/template/head.st
+++ b/template/head.st
@@ -10,6 +10,18 @@
$if(!user_nick)$
<link href="/static/form_login/front.css" media="screen, projection" rel="stylesheet" type="text/css">
$endif$
+
+$if(isadmin)$
+<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/ui-lightness/jquery-ui.css"
+ type="text/css" media="all" />
+<link rel="stylesheet" href="/static/css/admin.css"
+ type="text/css" media="all" />
+<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.0/jquery-ui.min.js"
+ type="text/javascript"></script>
+<script src="/static/js/admin.js"
+ type="text/javascript"></script>
+$endif$
+
<link rel="shortcut icon" href="/static/favicon.ico">
<script type="text/javascript">
</script>
@@ -17,4 +29,4 @@ $endif$
<script>
window.location.pathname = "/error/ie"
</script>
-<![endif]--> \ No newline at end of file
+<![endif]-->
diff --git a/template/profile.st b/template/profile.st
index 2af0072..dcf4497 100644
--- a/template/profile.st
+++ b/template/profile.st
@@ -31,6 +31,11 @@
<div id="profile">
<h2>$nick$</h2>
+
+ $if(isadmin)$
+ <a href="#" onclick="Admin.mute('$nick$'); return false">Mute $nick$!</a><br>
+ $endif$
+
$if(avatar)$
<img id="avatarPic" src="$avatar$" width="150px"/>
$else$