summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorIsmael Carnales <icarnales@gmail.com>2009-10-30 21:32:25 +0100
committerIsmael Carnales <icarnales@gmail.com>2009-11-10 01:24:41 +0100
commitb4999b495e828ff68a5c93f65a39efad5b37dcea (patch)
tree8b9455454362b8d66e11f7983b2b9d8b4318f411 /templates
parent7cd5c1f5a6dacd1aeab1a9a30e9af79e7e294482 (diff)
downloadarchweb-b4999b495e828ff68a5c93f65a39efad5b37dcea.tar.gz
archweb-b4999b495e828ff68a5c93f65a39efad5b37dcea.tar.xz
changed landing view
- moved devel.views.siteindex to public.views.index - using template from public view with added devel menu - added extra styles and images
Diffstat (limited to 'templates')
-rw-r--r--templates/devel/siteindex.html60
-rw-r--r--templates/public/index.html12
2 files changed, 12 insertions, 60 deletions
diff --git a/templates/devel/siteindex.html b/templates/devel/siteindex.html
deleted file mode 100644
index ac0df76..0000000
--- a/templates/devel/siteindex.html
+++ /dev/null
@@ -1,60 +0,0 @@
-{% extends "base.html" %}
-
-{% block content_left %}
- <div class="box-smalltext">
- <h3>Latest News</h2>
- {% for news in news_updates %}
- <span style="float:right;">{{ news.postdate }}</span>
- <a href="{{ news.get_absolute_url }}">{{ news.title }}</a>
- <br />
- {% endfor %}
- <br />
- <span style="float:left;font-size:x-small"><a href="/news/">More News...</a></span>
- <br />
- </div>
- <br />
- <div class="box-smalltext">
- <table width="100%">
- <tr>
- <td colspan="2"><h3>Recent Updates</h3></td>
- </tr>
- {% for pkg in pkg_updates %}
- <tr>
- <td><a href="{{ pkg.get_absolute_url }}">{{ pkg.pkgname }} {{ pkg.pkgver }}-{{ pkg.pkgrel }}</a></td>
- <td style="text-align:right">{{ pkg.arch.name }}</td>
- </tr>
- {% endfor %}
- <tr>
- <td colspan="2" style="text-align:left;font-size:x-small"><br /><a href="/packages/?sort=-last_update">More Updates...</a></td>
- </tr>
- </table>
- </div>
- <br />
-{% endblock %}
-
-{% block content_right %}
- <div id="search">
- <form method="get" action="/packages/">
- <p><b>Package Search:</b>&nbsp;&nbsp;<input type="text" name="q" size="20" maxlength="200" /></p>
- </form>
- </div>
- <br clear="all" />
- <h3>Dev Links:</h3>
- <ul class="links">
- <li><a href="/devel/">Dev Dashboard</a></li>
- <li><a href="/news/">News</a></li>
- <li><a href="/packages/signoffs/">Signoffs</a></li>
- <li><a href="/todo/">Todos</a></li>
- <li><a href="http://www.archlinux.org/mailman/private/arch-dev/">Archives</a></li>
- <li><a href="http://wiki.archlinux.org/index.php/DeveloperWiki:HOWTO_Be_A_Packager">Package Maintainer's Guide</a></li>
- <li><a href="/devel/profile/">Profile</a></li>
- </ul>
- <h3>Main Site Links:</h3>
- <ul class="links">
- <li><a href="http://bugs.archlinux.org">Bug Tracker</a></li>
- <li><a href="http://repos.archlinux.org/">SVN</a></li>
- <li><a href="http://projects.archlinux.org">Projects</a></li>
- <li><a href="http://www.archlinux.org/developers/">Developer List</a></li>
- <li><a href="http://www.archlinux.org/fellows/">Fellows List</a></li>
- </ul>
-{% endblock %}
diff --git a/templates/public/index.html b/templates/public/index.html
index e092e28..4e5612d 100644
--- a/templates/public/index.html
+++ b/templates/public/index.html
@@ -69,6 +69,18 @@
</table>
</div>
<br />
+ {% if user.is_authenticated %}
+ <h3>Dev Links:</h3>
+ <ul class="links">
+ <li><a href="/devel/">Dev Dashboard</a></li>
+ <li><a href="/news/">News</a></li>
+ <li><a href="/packages/signoffs/">Signoffs</a></li>
+ <li><a href="/todo/">Todos</a></li>
+ <li><a href="http://www.archlinux.org/mailman/private/arch-dev/">Archives</a></li>
+ <li><a href="http://wiki.archlinux.org/index.php/DeveloperWiki:HOWTO_Be_A_Packager">Package Maintainer's Guide</a></li>
+ <li><a href="/devel/profile/">Profile</a></li>
+ </ul>
+ {% endif %}
<h3>Documentation:</h3>
<ul class="links">
<li><a href="http://wiki.archlinux.org/index.php/Official_Arch_Linux_Install_Guide">Installation Guide</a></li>