changeset 22:3142616771cd

Removed default contact name changed depracated import of helpers, added manage repo funciton draft. Template updates removed colored logger
author Marcin Kuzminski
date Sun, 28 Feb 2010 14:19:21 +0100
parents fac1f62a1d71
children 9258478fcab2
files hgwebdir.config pylons_app/controllers/hg.py pylons_app/lib/colored_logger.py pylons_app/templates/monoblue_custom/notfound.tmpl pylons_app/templates/monoblue_custom/summary.tmpl
diffstat 5 files changed, 13 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/hgwebdir.config	Sun Feb 28 02:24:44 2010 +0100
+++ b/hgwebdir.config	Sun Feb 28 14:19:21 2010 +0100
@@ -8,7 +8,6 @@
 
 [web]
 push_ssl = false
-contact = develop@etelko.pl
 allow_archive = gz zip bz2
 allow_push = *
 templates=/home/marcink/python_workspace/hg_app/pylons_app/templates/
--- a/pylons_app/controllers/hg.py	Sun Feb 28 02:24:44 2010 +0100
+++ b/pylons_app/controllers/hg.py	Sun Feb 28 14:19:21 2010 +0100
@@ -2,7 +2,8 @@
 # -*- coding: utf-8 -*-
 import logging
 from pylons_app.lib.base import BaseController, render
-from pylons import c, g, session, h, request
+from pylons import c, g, session, request
+from pylons_app.lib import helpers as h
 from mako.template import Template
 from pprint import pprint
 import os
@@ -31,6 +32,10 @@
 
         return template.render(g = g, c = c, session = session, h = h)
 
+
+    def manage_hgrc(self):
+        pass
+
     def add_repo(self, new_repo):
         c.staticurl = g.statics
 
--- a/pylons_app/lib/colored_logger.py	Sun Feb 28 02:24:44 2010 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-
--- a/pylons_app/templates/monoblue_custom/notfound.tmpl	Sun Feb 28 02:24:44 2010 +0100
+++ b/pylons_app/templates/monoblue_custom/notfound.tmpl	Sun Feb 28 14:19:21 2010 +0100
@@ -1,7 +1,5 @@
 {header}
     <title>{repo|escape}: Mercurial repository not found</title>
-    <link rel="alternate" type="application/atom+xml" href="{url}atom-log" title="Atom feed for {repo|escape}"/>
-    <link rel="alternate" type="application/rss+xml" href="{url}rss-log" title="RSS feed for {repo|escape}"/>
 </head>
 
 <body>
@@ -15,14 +13,14 @@
 
     <h2 class="no-link no-border">Not Found</h2>
     <p class="normal">The specified repository "{repo|escape}" is unknown, sorry.</p>
-    <p class="normal">Please go back to the <a href="{url}">main repository list page</a>.</p>
-
+    <p class="normal"><a href="/add/{repo|escape}">Create "{repo|escape}" repository </a></p>
+    <p class="normal">Go back to the <a href="{url}">main repository list page</a>.</p>
     <div class="page-footer">
-        <p>Mercurial Repository: atom-log</p>
+        <p>Mercurial Repository: {repo|escape}</p>
     </div>
 
     <div id="powered-by">
-        <p><a href="http://mercurial.selenic.com/" title="Mercurial"><img src="/hg_static/hglogo.png" width=75 height=90 border=0 alt="mercurial"></a></p>
+        <p><a href="http://mercurial.selenic.com/" title="Mercurial"><img src="{staticurl}hglogo.png" width=75 height=90 border=0 alt="mercurial"></a></p>
 
     </div>
 
--- a/pylons_app/templates/monoblue_custom/summary.tmpl	Sun Feb 28 02:24:44 2010 +0100
+++ b/pylons_app/templates/monoblue_custom/summary.tmpl	Sun Feb 28 14:19:21 2010 +0100
@@ -27,7 +27,9 @@
             <li><a href="{url}file/{node|short}{sessionvars%urlparameter}">files</a></li>
         </ul>
     </div>
-
+    <ul class="submenu">
+        <li>edit hgrc</li>
+    </ul>
     <h2 class="no-link no-border">Mercurial Repository Overview</h2>
     <dl class="overview">
         <dt>name</dt>