Start adding basic login infrastructure (still needs styling)
[gitphp.git] / templates / main.tpl
blob:a/templates/main.tpl -> blob:b/templates/main.tpl
--- a/templates/main.tpl
+++ b/templates/main.tpl
@@ -86,6 +86,15 @@
     {/if}
   </head>
   <body>
+    {if $loginenabled}
+    <div class="login">
+    {if $loggedinuser}
+      <a href="{geturl action=logout}" />logout</a>
+    {else}
+      <a href="{geturl action=login}" />login</a>
+    {/if}
+    </div>
+    {/if}
     <div class="page_header">
       {if $supportedlocales}
       <div class="lang_select">

comments