Commits

Anonymous committed 5fe0cab

update /pages css

Comments (0)

Files changed (2)

c5t/core/public/css/dark.css

 }
 /* end of tag handler */
 .error_msg{
-color: red;
-font-weight: bold;
+  color: red;
+  font-weight: bold;
 }
+.excerpt-td{
+  padding-bottom: 10px;
+  border-bottom: 1px solid #ccc;
+}
+.button-to{
+  display: inline;
+}
+.page_link{
+  padding-right: 10px;
+}
+#pages_tbl th{
+  background: #efefef;
+}

c5t/core/templates/pages/index.mak

   <a href="./new">New Page</a><br/>
 %endif
 <div id="pages">
-<table>
+<table id="pages_tbl">
     <tr>
         <th><a href="?sort_by=title">Name</a></th>
         <th><a href="?sort_by=slug">Path</a></th>
         <th>Parent</th>
-        <th>Excerpt</th>
         <th>Tags</th>
         <th></th>
     </tr>
       <td><a href="../${page.path()}/">${page.title}</a></td>
       <td>${page.path()}</td>
       <td>${page.parent.path() if page.parent else ''}</td>
-      <td></td>
-      <td>${','.join(page.tags)}</td>
-      <td><a href="../${page.path()}/edit">Edit</a><br/>
-        <a href="../${page.path()}/new">Add Subpage</a><br/>
+      <td>
+        <div class="tagHandler">
+          <ul id="tagHandler" class="tagHandler tagHandlerContainer">
+          %for tag in page.tags:
+            <li class="tagItem">${tag}</li>
+          %endfor
+          </ul>
+        </div>
+      </td>
+      <td><a class="page_link" href="../${page.path()}/edit">Edit</a>
+        <a class="page_link" href="../${page.path()}/new">Add Subpage</a>
         <form method="POST" action="../${page.path()}" class="button-to" id="main">
             <input type="hidden" name="_method" value="DELETE" />
             <input type="hidden" name="page_id" value="${page._id}" />
       </td>
     </tr>
     <% thetext = h.strip_tags(page.text) %>
-    <tr><td colspan="6"><strong>Excerpt:</strong> ${thetext[0:1000]} ${len(thetext) > 1000 and '...' or ''}</td></tr>
+    <tr><td colspan="6" class="excerpt-td"><strong>Excerpt:</strong> ${thetext[0:1000]} ${len(thetext) > 1000 and '...' or ''}</td></tr>
     %endfor
 </table>
 </div>