- ${repo['name']} |
+ ${h.link_to(repo['name'],h.url('summary_home',repo_name=repo['name']))} |
r${repo['rev']}:${repo['tip']} |
${h.form(url('repo', id=repo['name']),method='delete')}
diff --git a/pylons_app/templates/user_add.html b/pylons_app/templates/admin/users/user_add.html
rename from pylons_app/templates/user_add.html
rename to pylons_app/templates/admin/users/user_add.html
--- a/pylons_app/templates/user_add.html
+++ b/pylons_app/templates/admin/users/user_add.html
@@ -1,4 +1,4 @@
-<%inherit file="base/base.html"/>
+<%inherit file="/base/base.html"/>
<%def name="title()">
${_('User')} - ${_('add new')}
%def>
diff --git a/pylons_app/templates/user_edit.html b/pylons_app/templates/admin/users/user_edit.html
rename from pylons_app/templates/user_edit.html
rename to pylons_app/templates/admin/users/user_edit.html
--- a/pylons_app/templates/user_edit.html
+++ b/pylons_app/templates/admin/users/user_edit.html
@@ -1,4 +1,4 @@
-<%inherit file="base/base.html"/>
+<%inherit file="/base/base.html"/>
<%def name="title()">
${_('User')} - ${c.user.username}
%def>
diff --git a/pylons_app/templates/users.html b/pylons_app/templates/admin/users/users.html
rename from pylons_app/templates/users.html
rename to pylons_app/templates/admin/users/users.html
--- a/pylons_app/templates/users.html
+++ b/pylons_app/templates/admin/users/users.html
@@ -1,4 +1,4 @@
-<%inherit file="base/base.html"/>
+<%inherit file="/base/base.html"/>
<%def name="title()">
${_('Repository managment')}
%def>
diff --git a/pylons_app/templates/branches/branches.html b/pylons_app/templates/branches/branches.html
new file mode 100644
--- /dev/null
+++ b/pylons_app/templates/branches/branches.html
@@ -0,0 +1,46 @@
+<%inherit file="/base/base.html"/>
+<%! from pylons_app.lib import filters %>
+<%def name="title()">
+ ${_('Branches')}
+%def>
+<%def name="breadcrumbs()">
+ ${h.link_to(u'Home',h.url('/'))}
+ /
+ ${h.link_to(c.repo_name,h.url('summary_home',repo_name=c.repo_name))}
+ /
+ ${_('branches')}
+%def>
+<%def name="page_nav()">
+
+
+ ${self.menu('branches')}
+%def>
+<%def name="main()">
+
+ ${_('Branches')}
+
+
+ %for cnt,branch in enumerate(c.repo_branches):
+
+ ${branch._ctx.date()|n,filters.age} |
+ |
+
+
+ ${h.link_to(branch.branch,h.url('changeset_home',repo_name=c.repo_name,revision=branch._short))}
+
+ |
+
+ ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=branch._short))}
+ |
+ ${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=branch._short))}
+ |
+
+ %endfor
+
+
+%def>
\ No newline at end of file
diff --git a/pylons_app/templates/graph.html b/pylons_app/templates/graph.html
--- a/pylons_app/templates/graph.html
+++ b/pylons_app/templates/graph.html
@@ -1,4 +1,4 @@
-<%inherit file="base/base.html"/>
+<%inherit file="/base/base.html"/>
<%def name="title()">
${_('Repository managment')}
diff --git a/pylons_app/templates/shortlog.html b/pylons_app/templates/shortlog/shortlog.html
rename from pylons_app/templates/shortlog.html
rename to pylons_app/templates/shortlog/shortlog.html
--- a/pylons_app/templates/shortlog.html
+++ b/pylons_app/templates/shortlog/shortlog.html
@@ -1,4 +1,4 @@
-<%inherit file="base/base.html"/>
+<%inherit file="/base/base.html"/>
<%def name="title()">
${_('Repository managment')}
diff --git a/pylons_app/templates/shortlog_data.html b/pylons_app/templates/shortlog/shortlog_data.html
rename from pylons_app/templates/shortlog_data.html
rename to pylons_app/templates/shortlog/shortlog_data.html
diff --git a/pylons_app/templates/summary.html b/pylons_app/templates/summary.html
--- a/pylons_app/templates/summary.html
+++ b/pylons_app/templates/summary.html
@@ -1,4 +1,4 @@
-<%inherit file="base/base.html"/>
+<%inherit file="/base/base.html"/>
<%!
from pylons_app.lib import filters
%>
diff --git a/pylons_app/templates/tags/tags.html b/pylons_app/templates/tags/tags.html
new file mode 100644
--- /dev/null
+++ b/pylons_app/templates/tags/tags.html
@@ -0,0 +1,48 @@
+<%inherit file="/base/base.html"/>
+<%!
+from pylons_app.lib import filters
+%>
+<%def name="title()">
+ ${_('Tags')}
+%def>
+<%def name="breadcrumbs()">
+ ${h.link_to(u'Home',h.url('/'))}
+ /
+ ${h.link_to(c.repo_name,h.url('summary_home',repo_name=c.repo_name))}
+ /
+ ${_('tags')}
+%def>
+<%def name="page_nav()">
+
+
+ ${self.menu('tags')}
+%def>
+<%def name="main()">
+
+ ${_('Tags')}
+
+
+ %for cnt,tag in enumerate(c.repo_tags):
+
+ ${tag._ctx.date()|n,filters.age} |
+ |
+
+
+ ${h.link_to(tag.tags[-1],h.url('changeset_home',repo_name=c.repo_name,revision=tag._short))}
+
+ |
+
+ ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=tag._short))}
+ |
+ ${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=tag._short))}
+ |
+
+ %endfor
+
+
+%def>
\ No newline at end of file
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -6,29 +6,29 @@ except ImportError:
from setuptools import setup, find_packages
setup(
- name = 'pylons_app',
- version = '1.0',
- description = '',
- author = 'marcin kuzminski',
- author_email = 'marcin@python-blog.com',
- url = '',
- install_requires = [
- "Pylons>=0.9.7,<=0.9.7.99",
- "SQLAlchemy>=0.5,<=0.5.99",
- "Mako>=0.2.2,<=0.2.99",
+ name='pylons_app',
+ version='1.0',
+ description='',
+ author='marcin kuzminski',
+ author_email='marcin@python-blog.com',
+ url='',
+ install_requires=[
+ "Pylons>=1.0.0",
+ "SQLAlchemy>=0.6",
+ "Mako>=0.3.2",
],
- setup_requires = ["PasteScript>=1.6.3"],
- packages = find_packages(exclude = ['ez_setup']),
- include_package_data = True,
- test_suite = 'nose.collector',
- package_data = {'pylons_app': ['i18n/*/LC_MESSAGES/*.mo']},
- message_extractors = {'pylons_app': [
+ setup_requires=["PasteScript>=1.6.3"],
+ packages=find_packages(exclude=['ez_setup']),
+ include_package_data=True,
+ test_suite='nose.collector',
+ package_data={'pylons_app': ['i18n/*/LC_MESSAGES/*.mo']},
+ message_extractors={'pylons_app': [
('**.py', 'python', None),
('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}),
('public/**', 'ignore', None)]},
- zip_safe = False,
- paster_plugins = ['PasteScript', 'Pylons'],
- entry_points = """
+ zip_safe=False,
+ paster_plugins=['PasteScript', 'Pylons'],
+ entry_points="""
[paste.app_factory]
main = pylons_app.config.middleware:make_app
|