summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-02-22 21:12:50 +0100
committerLeif Johansson <leifj@sunet.se>2011-02-22 21:12:50 +0100
commit6244610d840806418bf774bf771b8af28b3a19e0 (patch)
treeebc6b3d3127db06ddb5fd009e53668c5a59ee09d /templates
parent3ff9d9544a047fc65d1666cd68fbd37f1b3aa5eb (diff)
style cleanup
Diffstat (limited to 'templates')
-rw-r--r--templates/apps/name/name.html20
-rw-r--r--templates/base.html12
-rw-r--r--templates/edit.html2
-rw-r--r--templates/tree.html4
4 files changed, 20 insertions, 18 deletions
diff --git a/templates/apps/name/name.html b/templates/apps/name/name.html
index d7be379..dce2028 100644
--- a/templates/apps/name/name.html
+++ b/templates/apps/name/name.html
@@ -18,12 +18,10 @@
<h1>This is the top of the namespace</h1>
{% endif %}
{% if name.description %}
- <div class="ui-widget">
- <div class="ui-state-highlight ui-corner-all infopanel">
- {% autoescape off %}
- <p class="description">{{name.description|safe}}</p>
- {% endautoescape %}
- </div>
+ <div id="description" class="ui-widget infopanel">
+ {% autoescape off %}
+ <p class="description">{{name.description|safe}}</p>
+ {% endautoescape %}
</div>
{% endif %}
{% if memberships and render.invite %}
@@ -34,6 +32,8 @@
<h3 class="listheader">{{m.user|lastidentifier}}</h3>
<div>{{m.user|userdisplay}} ({{m.user|lastidentifier}}) became a member of {{name.shortname}} {{m.timecreated|datehumanize}}.</div>
</div>
+ {% empty %}
+ <p>No members yet...</p>
{% endfor %}
</div>
{% endif %}
@@ -44,14 +44,14 @@
<div id="m{{m.id}}">
<h3 class="listheader">{{i.email}}</h3>
<div>
- <div class="navlist" style="margin-top: -10px;">
+ <div>{{i.email}} was invited to {{i.name.shortname}} {{i.timecreated|datehumanize}} by {{i.inviter}}.</div>
+ <div class="navlist" style="margin-top: 10px;">
<ul>
- <li style="float: right;"><a class="tip" title="Cancel invitation" href="/invitation/{{i.id}}/cancel"><span class="ui-icon ui-icon-trash"></span></a></li>
- <li style="float: right;"><a class="tip" title="Resend invitation" href="/invitation/{{i.id}}/resend"><span class="ui-icon ui-icon-mail-closed"></span></a></li>
+ <li class="button"><a href="/invitation/{{i.id}}/cancel">Cancel</a></li>
+ <li class="button"><a href="/invitation/{{i.id}}/resend">Resend</a></li>
</ul>
</div>
<div class="clear"></div>
- <div>{{i.email}} was invited to {{i.name.shortname}} {{i.timecreated|datehumanize}} by {{i.inviter}}.</div>
</div>
</div>
{% empty %}
diff --git a/templates/base.html b/templates/base.html
index 9716e8e..a212afb 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -61,8 +61,10 @@
<div id="container">
<div id="header">
{% if name %}
- <div style="float: left;" class="button toolbar">
- <a class="tip" title="This is the full name of the group. This is the name that will be exposed to applications." href="/name/id/{{name.id}}">{{ name }}</a>
+ <div style="float: left;" class="navlist toolbar">
+ <ul>
+ <li class="button"><a class="tip" title="This is the full name of the group. This is the name that will be exposed to applications." href="/name/id/{{name.id}}">{{ name }}</a></li>
+ </ul>
</div>
{% endif %}
{% if user.is_authenticated %}
@@ -75,6 +77,9 @@
{% if name %}
<div class="navlist toolbar">
<ul>
+ {% if render.add %}
+ <li class="button"><a href="/name/{{name.id}}/add">New Group</a></li>
+ {% endif %}
{% if render.acl %}
<li class="button"><a href="/name/{{name.id}}/link/0">Modify Access</a></li>
{% endif %}
@@ -84,9 +89,6 @@
{% if render.delete %}
<li class="button"><a href="/name/{{name.id}}/delete">Delete</a></li>
{% endif %}
- {% if render.add %}
- <li class="button"><a href="/name/{{name.id}}/add">New Group</a></li>
- {% endif %}
{% if render.invite %}
<li class="button"><a href="/name/{{name.id}}/invite">Invite</a></li>
{% endif %}
diff --git a/templates/edit.html b/templates/edit.html
index 404751a..f4fb52a 100644
--- a/templates/edit.html
+++ b/templates/edit.html
@@ -7,7 +7,7 @@
{% block beforeform %}
{% endblock %}
<form method="POST">
- <div class="ui-widget-content ui-corner-all infopanel">
+ <div class="infopanel">
<h1>{{formtitle}}</h1>
<table class="formtable">
{% for field in form %}
diff --git a/templates/tree.html b/templates/tree.html
index f7a18cb..8bcdfd9 100644
--- a/templates/tree.html
+++ b/templates/tree.html
@@ -41,7 +41,7 @@ $(function() {
{% endif %}
<div id="jstree"></div>
</div>
- <div id="related">
+ <!-- div id="related">
{% if name and name.links %}
<h3 style="float: left;">Related resources</h3>
{% if render.edit %}
@@ -58,7 +58,7 @@ $(function() {
</ul>
<div class="clear"></div>
{% endif %}
- </div>
+ </div -->
</div>
<div id="right">
{% block content %}{% endblock %}