web: add help links

This commit is contained in:
Simon Michael 2009-11-19 21:11:07 +00:00
parent 9c410a50dd
commit b3aedda275
2 changed files with 7 additions and 2 deletions

View File

@ -196,8 +196,10 @@ hledgerpage env msgs title content =
navbar :: Hack.Env -> HSP XML
navbar env =
<div id="navbar">
<a href="http://hledger.org" id="hledgerorglink">hledger.org</a>
<% navlinks env %>
<% searchform env %>
<a href="http://hledger.org/README.html" id="helplink">help</a>
</div>
getParamOrNull p = fromMaybe "" `fmap` getParam p
@ -245,7 +247,7 @@ addform env = do
</tr>
<% transactionfields 1 env %>
<% transactionfields 2 env %>
<tr align="right"><td><input type="submit" value="add transaction" /></td></tr>
<tr id="addbuttonrow"><td><input type="submit" value="add transaction" /></td></tr>
</table>
</form>
</div>

View File

@ -5,8 +5,11 @@ body { font-family: "helvetica","arial", "sans serif"; margin:0; }
#navlinks { display:inline; }
.navlink { font-weight:normal; }
#searchform { font-size:small; display:inline; margin-left:1em; }
#resetlink { }
#hledgerorglink { font-size:small; float:right; }
#helplink { font-size:small; margin-left:1em; }
#resetlink { font-size:small; }
#messages { color:red; background-color:#ffeeee; margin:0.5em;}
#content { padding:0 4px 0 4px; }
#addform { margin-left:1em; font-size:small; float:right;}
#addform table { background-color:#eeeeee; border:2px solid #dddddd; }
#addform #addbuttonrow td { text-align:left; }