Commits

Andreas Stenius committed 1d7abe0

Added padding to zmr repo cards. Made whole card header clickable. Removed "button" style on category links.

Comments (0)

Files changed (6)

lib/css/zp-project.css

+.padding { padding: 4px; }
+
 /*
  * jQuery UI CSS Framework 1.8.10
  *

templates/_admin_edit_content.zmr_repository.tpl

 <input id="zmr_repository_url" type="text" name="zmr_repository_url" value="{{ r.zmr_repository_url }}" style="width: 80%" />
 
 <div id="repo_status">
-{ % if m.zmr.repo[id].exist %} 
+{% if m.zmr.repo[id].exist %} 
 	Repository is cloned.
-{ % else %}
-	{ % button text="Clone repository" action={clone_repo id=id target="repo_status"} %}
-{ % endif %}
+{% else %}
+	{% button text="Clone repository" action={clone_repo id=id target="repo_status"} %}
+{% endif %}
 </div>
 </div>
 

templates/_zmr_mod_card.tpl

-<div class="zp-90 ui-widget-content ui-corner-all">
-  <h3 class="ui-widget-header"><a href="{{ m.rsc[id].page_url }}">{{ m.rsc[id].title }}</a></h3>
+<div class="ui-widget-content ui-corner-all">
+  <a href="{{ m.rsc[id].page_url }}"><h3 class="ui-widget-header">{{ m.rsc[id].title }}</h3></a>
+  <div class="padding">
     {% include "_zmr_mod_category_links.tpl" %}
-  <p>
-    {{ m.rsc[id].summary }}
-  </p>
+    <p>
+	{{ m.rsc[id].summary }}
+    </p>
+  </div>
 </div>

templates/_zmr_mod_category_links.tpl

 {% for cat in m.rsc[id].subject %}
-  <div class="clearfix ui-state-default ui-corner-all"><a href="{{ m.rsc[cat].page_url }}"><div class="ui-icon ui-icon-tag" style="float: left"></div>{{ m.rsc[cat].title }}</a></div>
+  <div class="clearfix"><a href="{{ m.rsc[cat].page_url }}"><div class="ui-icon ui-icon-tag left"></div>{{ m.rsc[cat].title }}</a></div>
 {% endfor %}

templates/category.tpl

   <div class="zp-25">
     <ul>
       {% for id, predicate in col %}
-        <li>
+        <li class="padding">
 	  {% include "_zmr_mod_card.tpl" id=id %}
         </li>
       {% endfor %}

templates/home.tpl

 <div class="zp-25">
     <ul>
         {% for id in col %}
-        <li>
+        <li class="padding">
 	  {% include "_zmr_mod_card.tpl" id=id %}
         </li>
         {% endfor %}