Skip to content

Commit

Permalink
Separate servers on the user profile a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
abh committed Jun 21, 2012
1 parent 2b4599e commit 90b37de
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/ntppool/tpl/user/profile_public.html
@@ -1,6 +1,6 @@
[% page.title = (user.username || user.email) _ "'s pool servers" %]

<div class="block">
<div id="userprofile" class="block">

<h3>[% user.username || user.email | html %]'s pool servers</h3>

Expand All @@ -13,7 +13,7 @@ <h3>[% user.username || user.email | html %]'s pool servers</h3>
[% END %]

[% FOR server = user.servers %]
<p>
<div class="server">
[% IF server.hostname %]Hostname: <b>[% server.hostname | html %]</b><br />[% END %]
IP: <b><a href="[% server.url %]">[% server.ip | html %]</a></b><br />
Current score: <b>[% server.score %]</b><br />
Expand All @@ -40,7 +40,7 @@ <h3>[% user.username || user.email | html %]'s pool servers</h3>
<div class="graph" data-server-ip="[% server.ip %]" data-width="480" data-height="100"></div>
<div class="graph-legend"></div>

</p>
</div>
[% END %]

[% page.js.push(combust.static_group("d3.js")) %]
Expand Down
8 changes: 8 additions & 0 deletions docs/shared/static/css/content.css
Expand Up @@ -126,6 +126,14 @@ p.thanks {font-style: italic; font-weight: bold;}
}
#admin .value span {font-size: 107%;}
#admin .server_desc {font-size: 88%;}

/* user profile */
#userprofile .server {
border-bottom: 1px dotted #bbb;
padding-bottom: 10px;
margin-bottom: 15px;
}


/* zones */
table.servertable {
Expand Down

0 comments on commit 90b37de

Please sign in to comment.