Standardize sidebars
authorJustin J. Novack <jnovack@gmail.com>
Sun, 7 Oct 2012 02:58:34 +0000 (22:58 -0400)
committerChristian Weiske <cweiske@cweiske.de>
Wed, 24 Oct 2012 13:00:12 +0000 (15:00 +0200)
data/templates/display-sidebar-history.htm
data/templates/list.htm
data/templates/new.htm
data/templates/repo-sidebar-list.htm
data/templates/search.htm
www/css/phorkie.css

index bf388843395d7d800fcbbec21c7f5b039b2eac53..eb844e42ca59d367fbb536c667dec0303573d313 100644 (file)
@@ -1,8 +1,8 @@
-<h3>History</h3>
+<h4>History</h4>
 
 <ul class="history unstyled">
 {% for commit in repo.getHistory %}
- <li {% if commit.hash == repo.hash or (repo.hash == '' and loop.first) %}class="active"{%endif%}>
+ <li class="row-fluid {% if commit.hash == repo.hash or (repo.hash == '' and loop.first) %}active{%endif%}">
   {% spaceless %}
   {% for dot in commit.getDots %}
   <img src="/phorkie/dot-{{dot}}.png" alt="" style="padding-left:1px" width="4" height="4"/>
   {% endspaceless %}
   <a class="hash" href="{{repo.getLink('revision', commit.hash)}}">{{commit.hash|slice(0, 6)}}</a>
   <img src="{{commit.getIconUrl}}" alt="{{commit.committerName}}" title="{{commit.committerName}}" width="20"/>
-  <span title="{{commit.committerTime|date('c')}}">{{dh.get(commit.committerTime)}}</span>
+  <span class="nobr" title="{{commit.committerTime|date('c')}}">
+   <span class="indent visible-tablet"></span>
+   {{dh.get(commit.committerTime)}}
+  </span>
  </li>
 {% else %}
 <p>No commits yet</p>
index aee3100bf49e417b26eb77d61f52465a7c974fc9..70e2fee096f1751522a3dec49b7dbede5caff54e 100644 (file)
@@ -14,8 +14,8 @@
 
 {% block sidebar %}
  {% if recents.results %}
-  <h3>Recently updated</h3>
-  <ul>
+  <h4>Recently updated</h4>
+  <ul class="unstyled">
   {% for repo in recents.repos %}
    {% include 'repo-sidebar-list.htm' %}
   {% endfor %}
index 0f6971961ed8afb5fef589c7fd3c6cd7ce9364ba..4a748bff1ff8372b743c58f4374cecd9bf3e6747 100644 (file)
@@ -38,8 +38,8 @@ $(document).ready(function() {
 
 {% block sidebar %}
  {% if recents.results %}
- <h3>Recently updated</h3>
- <ul>
+ <h4>Recently updated</h4>
+ <ul class="unstyled">
  {% for repo in recents.repos %}
    {% include 'repo-sidebar-list.htm' %}
  {% endfor %}
index cb9f3d8d79e9c4c54e184d5ca8465208eff9c7bb..69df49f44f08bc777afb63059d9a187b3bf36acc 100644 (file)
@@ -2,5 +2,5 @@
   <a href="{{repo.getLink('display')}}">
    {{repo.getTitle}}
   </a><br/>
-  &#160;&#160;&#160;<span title="{{repo.modate|date('c')}}">{{dh.get(repo.modate)}}</span>
+  <span class="indent" title="{{repo.modate|date('c')}}">{{dh.get(repo.modate)}}</span>
  </li>
index 7a19a4e0319916b860d43314ea4e49b602f93847..4f7d3e043fa48685a8b6702b7af0e44217e95c08 100644 (file)
@@ -25,7 +25,7 @@
 {% endblock %}
 
 {% block sidebar %}
- <h3>Search tips</h3>
+ <h4>Search tips</h4>
  <dl>
   <dt>Exclusion</dt>
    <dd><tt>+foo -bar</tt></dd>
index bc1bdc98e7da7dc29a45f4a25c6b2156ba4b6e21..f5de22574fd853654bba1692502855dee897f2e6 100644 (file)
@@ -156,3 +156,11 @@ form label.inline {
 .btn [class^="icon-"], .btn [class*=" icon-"] {
     line-height: 1.1em;
 }
+
+.indent {
+    margin-left: 10px;
+}
+
+.nobr {
+    white-space:nowrap;
+}