]> gitweb.factorcode.org Git - factor.git/commitdiff
webapps.pastebin: updated css style.
authorJohn Benediktsson <mrjbq7@gmail.com>
Thu, 27 Feb 2020 22:44:05 +0000 (14:44 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 27 Feb 2020 22:44:05 +0000 (14:44 -0800)
extra/webapps/pastebin/pastebin-common.xml
extra/webapps/pastebin/pastebin.css
extra/webapps/pastebin/pastebin.xml

index cadecc39c7a85822da648756dffb478812a9b012..435028ecf7c9f737202e2aea6ac18ff00c45f416 100644 (file)
@@ -6,25 +6,31 @@
 
        <t:style t:include="resource:extra/webapps/pastebin/pastebin.css" />
 
-       <div class="navbar">
+    <div id="container">
 
-               <t:a t:href="$pastebin">Pastes</t:a>
-               <t:a t:href="$pastebin/new-paste">New Paste</t:a>
+        <div class="navbar">
 
-               <t:if t:code="furnace.auth:logged-in?">
+            <t:a t:href="$pastebin">Pastes</t:a>
+            <t:a t:href="$pastebin/new-paste">New Paste</t:a>
 
-                       <t:if t:code="furnace.auth.features.edit-profile:allow-edit-profile?">
-                               <t:a t:href="$realm/edit-profile" t:aside="begin">Edit Profile</t:a>
-                       </t:if>
+            <t:if t:code="furnace.auth:logged-in?">
 
-                       <t:button t:action="$login-realm/logout" t:aside="begin" class="link-button link">Logout</t:button>
+                <t:if t:code="furnace.auth.features.edit-profile:allow-edit-profile?">
+                    <t:a t:href="$realm/edit-profile" t:aside="begin">Edit Profile</t:a>
+                </t:if>
 
-               </t:if>
+                <t:button t:action="$login-realm/logout" t:aside="begin" class="link-button link">Logout</t:button>
+            </t:if>
+            <div style="float: right;">
+                <a href="//factorcode.org"><b>factorcode.org</b></a>
+            </div>
+        </div>
 
-       </div>
+        <div class="page">
+            <h1><t:write-title /></h1>
 
-       <h1><t:write-title /></h1>
-
-        <t:call-next-template />
+            <t:call-next-template />
+        </div>
 
+    </div>
 </t:chloe>
index 16814770a25713f7d0b93e9901b9d472ef73a197..2e96ef4f10d3959b47672809b896774e7bb34a7b 100644 (file)
@@ -1,3 +1,17 @@
+body {
+    margin: 0;
+}
+
+#container {
+    max-width: 1000px;
+}
+
+.page {
+    padding-left: 15px;
+    padding-right: 15px;
+    padding-bottom: 15px;
+}
+
 pre.code {
        border:1px dashed #ccc;
        background-color:#f5f5f5;
index 3c9cb7ce9676ac18bdb69985dcc97efdb55ecbdc..18fdcb3843a637532a68f65247a75d452cc13ccf 100644 (file)
@@ -6,16 +6,16 @@
 
        <table width="100%">
                <tr>
-                       <th align="left" width="50%">Summary:</th>
-                       <th align="left" width="100">Paste by:</th>
-                       <th align="left" width="200">Date:</th>
+                       <th align="left" width="50%">Summary</th>
+                       <th align="left" width="100">Username</th>
+                       <th align="left" width="200">Date</th>
                </tr>
 
                <t:bind-each t:name="pastes">
                        <tr>
-                               <td><t:a t:href="$pastebin/paste" t:query="id"><t:label t:name="summary" /></t:a></td>
+                               <td width="100%"><t:a t:href="$pastebin/paste" t:query="id"><t:label t:name="summary" /></t:a></td>
                                <td><t:label t:name="author" /></td>
-                               <td><t:label t:name="date" /></td>
+                               <td style="white-space: nowrap"><t:label t:name="date" /></td>
                        </tr>
                </t:bind-each>
        </table>