Skip to content

Commit

Permalink
Created admin section in the LFE.
Browse files Browse the repository at this point in the history
Moved blogroll management to admin section.
  • Loading branch information
lethain committed Jul 6, 2008
1 parent ac22392 commit 2216f54
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
3 changes: 2 additions & 1 deletion editor/urls.py
Expand Up @@ -4,9 +4,10 @@
urlpatterns = patterns('lifeflow.editor.views',
(r'^$', 'overview'),
(r'^comments/$', 'comments'),
(r'^blogroll/$', 'blogroll'),
(r'^files/$', 'files'),

(r'^admin/$', 'blogroll'),

(r'^authors/$', 'authors'),
(r'^authors/create/$', 'create_author'),
(r'^authors/(?P<id>\d+)/$', 'author_edit'),
Expand Down
11 changes: 11 additions & 0 deletions templates/lifeflow/editor/admin_base.html
@@ -0,0 +1,11 @@
{% extends "lifeflow/editor/base.html" %}

{% block body %}
<div class="breadcrumbs">
<span><a href="../blogroll/">Blogroll</a> </span>
<span> <a href="../sites_to_ping/">Sites-to-Ping</a> </span>
<span> <a href="../site_config/">Site Config</a> </span>
</div>
{% block body2 %}{% endblock %}

{% endblock %}
2 changes: 1 addition & 1 deletion templates/lifeflow/editor/base.html
Expand Up @@ -25,7 +25,7 @@
<a class="left" href="/editor/projects/">projects</a>
<a class="left" href="/editor/files/">files</a>
<a class="left" href="/editor/authors/">authors</a>
<a class="left" href="/editor/blogroll/">blogroll</a>
<a class="left" href="/editor/admin/">admin</a>
{% endif %}
</div>
<div class="error-msg" id="errors"></div>
Expand Down
4 changes: 2 additions & 2 deletions templates/lifeflow/editor/blogroll.html
@@ -1,6 +1,6 @@
{% extends "lifeflow/editor/base.html" %}
{% extends "lifeflow/editor/admin_base.html" %}

{% block body %}
{% block body2 %}
<script>
var delete_blog = function(pk) {
delete_model("recommendedsite",pk);
Expand Down

0 comments on commit 2216f54

Please sign in to comment.