]> git.sur5r.net Git - contagged/commitdiff
style fixes and doubleclick edit
authorAndreas Gohr <gohr@cosmocode.de>
Wed, 1 Feb 2006 14:25:42 +0000 (15:25 +0100)
committerAndreas Gohr <gohr@cosmocode.de>
Wed, 1 Feb 2006 14:25:42 +0000 (15:25 +0100)
darcs-hash:20060201142542-6e07b-fdee2a8e6ca5f8921783638cd64d2bee50b125cc.gz

templates/entry_show.tpl
templates/style.css

index 70a0367f2016cb997e32bd2e16e7811ed1d0af96..ed68a4d113b7a55addc8a804b05aec3693256091 100644 (file)
@@ -1,14 +1,14 @@
 {include file="header.tpl"}
 
-<h1>
-  <img src="pix/{$entry.type}.png" border="0" width="22" height="22" align="middle" title="{$entry.type}">
-  {$entry.givenname} {$entry.name}
-</h1>
 {if $entry.photo != ''}
   <a href="img.php?dn={$entry.dn|escape:url}"><img src="img.php?dn={$entry.dn|escape:url}" align="right" class="photo" width="130" /></a>
 {/if}
+<h1>
+  <img src="pix/{$entry.type}.png" border="0" width="22" height="22" align="middle" title="{$entry.type}" />
+  {$entry.givenname} {$entry.name}
+</h1>
 
-<table width="100%">
+<table width="100%" {if $user}ondblclick="window.location.href='entry.php?dn={$entry.dn|escape:url}&mode=edit'"{/if}>
   <tr>
     <td valign="top" width="50%">
       <b>{$lang.business}</b>
index 899864e1b9b51ab65677f501d65079cd61586837..feb0135759e3492ee7502db1b17553a3fd4f39c3 100644 (file)
@@ -55,11 +55,13 @@ td    {background-color:#66CCFF:margin:3px}
               font-family:Lucida,Helvetica,Verdana,Arial,Sans-Serif;
               font-size: 12px;}
                
-.photo {border-width:1px;
-        border-style:solid;
-        border-color:#000000;
-        padding:3px;
-        }
+.photo {
+  margin-top: 1em;
+  border-width:1px;
+  border-style:solid;
+  border-color:#000000;
+  padding:3px;
+}
 
 .input {border-width:1px;
         border-style:solid;
@@ -135,6 +137,12 @@ img.click {
   cursor: pointer;
 }
 
+h1 { margin-top: 0;}
+h1 img {
+  line-height:100%;
+  vertical-align:middle;
+}
+
 /* TagCloud */
 a.tc0  { font-size: 80%; }
 a.tc1  { font-size: 100%; }