<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -78,7 +78,7 @@
 			foreach ((array) Config::current()-&gt;aggregates as $name =&gt; $aggregate)
 				$aggregates[] = array_merge(array(&quot;name&quot; =&gt; $name), array(&quot;user&quot; =&gt; new User($aggregate[&quot;author&quot;])), $aggregate);
 
-			$admin-&gt;context[&quot;aggregates&quot;] = new Paginator($aggregates, 25, &quot;page&quot;, false);
+			$admin-&gt;display(&quot;manage_aggregates&quot;, array(&quot;aggregates&quot; =&gt; new Paginator($aggregates, 25, &quot;page&quot;, false)));
 		}
 
 		public function manage_nav($navs) {
@@ -184,7 +184,7 @@
 				show_403(__(&quot;Access Denied&quot;), __(&quot;You do not have sufficient privileges to change settings.&quot;));
 
 			if (empty($_POST))
-				return;
+				return $admin-&gt;display(&quot;aggregation_settings&quot;);
 
 			if (!isset($_POST['hash']) or $_POST['hash'] != Config::current()-&gt;secure_hashkey)
 				show_403(__(&quot;Access Denied&quot;), __(&quot;Invalid security key.&quot;));
@@ -205,7 +205,7 @@
 				show_403(__(&quot;Access Denied&quot;), __(&quot;You do not have sufficient privileges to add aggregates.&quot;, &quot;aggregator&quot;));
 
 			if (empty($_POST))
-				return;
+				return $admin-&gt;display(&quot;new_aggregate&quot;);
 
 			if (!isset($_POST['hash']) or $_POST['hash'] != Config::current()-&gt;secure_hashkey)
 				show_403(__(&quot;Access Denied&quot;), __(&quot;Invalid security key.&quot;));
@@ -248,14 +248,18 @@
 
 			$aggregate = $config-&gt;aggregates[$_GET['id']];
 
-			$admin-&gt;context[&quot;aggregate&quot;] = array(&quot;name&quot; =&gt; $_GET['id'],
-			                                     &quot;url&quot; =&gt; $aggregate[&quot;url&quot;],
-			                                     &quot;feather&quot; =&gt; $aggregate[&quot;feather&quot;],
-			                                     &quot;author&quot; =&gt; $aggregate[&quot;author&quot;],
-			                                     &quot;data&quot; =&gt; preg_replace(&quot;/---\n/&quot;, &quot;&quot;, YAML::dump($aggregate[&quot;data&quot;])));
+			$admin-&gt;context[&quot;aggregate&quot;] = ;
 
 			if (empty($_POST))
-				return;
+				return $admin-&gt;display(&quot;edit_aggregate&quot;,
+				                       array(&quot;users&quot; =&gt; User::find(),
+				                             &quot;aggregate&quot; =&gt; array(&quot;name&quot; =&gt; $_GET['id'],
+				                                                  &quot;url&quot; =&gt; $aggregate[&quot;url&quot;],
+				                                                  &quot;feather&quot; =&gt; $aggregate[&quot;feather&quot;],
+				                                                  &quot;author&quot; =&gt; $aggregate[&quot;author&quot;],
+				                                                  &quot;data&quot; =&gt; preg_replace(&quot;/---\n/&quot;,
+				                                                                         &quot;&quot;,
+				                                                                         YAML::dump($aggregate[&quot;data&quot;]))));
 
 			if (!isset($_POST['hash']) or $_POST['hash'] != Config::current()-&gt;secure_hashkey)
 				show_403(__(&quot;Access Denied&quot;), __(&quot;Invalid security key.&quot;));
@@ -289,6 +293,8 @@
 
 			$admin-&gt;context[&quot;aggregate&quot;] = array(&quot;name&quot; =&gt; $_GET['id'],
 			                                     &quot;url&quot; =&gt; $aggregate[&quot;url&quot;]);
+			$admin-&gt;display(&quot;delete_aggregate&quot;, array(&quot;aggregate&quot; =&gt; array(&quot;name&quot; =&gt; $_GET['id'],
+			                                                               &quot;url&quot; =&gt; $aggregate[&quot;url&quot;])));
 		}
 
 		public function admin_destroy_aggregate($admin) {</diff>
      <filename>modules/aggregator/aggregator.php</filename>
    </modified>
    <modified>
      <diff>@@ -137,12 +137,12 @@
 			return $navs;
 		}
 
-		public function admin_cache_settings() {
+		public function admin_cache_settings($admin) {
 			if (!Visitor::current()-&gt;group()-&gt;can(&quot;change_settings&quot;))
 				show_403(__(&quot;Access Denied&quot;), __(&quot;You do not have sufficient privileges to change settings.&quot;));
 
 			if (empty($_POST))
-				return;
+				return $admin-&gt;display(&quot;cache_settings&quot;);
 
 			if (!isset($_POST['hash']) or $_POST['hash'] != Config::current()-&gt;secure_hashkey)
 				show_403(__(&quot;Access Denied&quot;), __(&quot;Invalid security key.&quot;));</diff>
      <filename>modules/cacher/cacher.php</filename>
    </modified>
    <modified>
      <diff>@@ -109,13 +109,13 @@
 				              &quot;/admin/?action=manage_comments&quot;);
 		}
 
-		static function admin_delete_comment() {
-			$admin = AdminController::current();
+		static function admin_delete_comment($admin) {
+			$comment = new Comment($_GET['id']);
 
-			$admin-&gt;context[&quot;comment&quot;] = new Comment($_GET['id']);
-
-			if (!$admin-&gt;context[&quot;comment&quot;]-&gt;deletable())
+			if (!$comment-&gt;deletable())
 				show_403(__(&quot;Access Denied&quot;), __(&quot;You do not have sufficient privileges to delete this comment.&quot;, &quot;comments&quot;));
+
+			$admin-&gt;display(&quot;delete_comment&quot;, array(&quot;comments&quot; =&gt; $comment));
 		}
 
 		static function admin_destroy_comment() {
@@ -145,17 +145,20 @@
 				redirect(&quot;/admin/?action=manage_comments&quot;);
 		}
 
-		static function admin_manage_spam() {
+		static function admin_manage_spam($admin) {
 			if (!Visitor::current()-&gt;group()-&gt;can(&quot;edit_comment&quot;, &quot;delete_comment&quot;, true))
 				show_403(__(&quot;Access Denied&quot;), __(&quot;You do not have sufficient privileges to manage any comments.&quot;, &quot;comments&quot;));
 
 			fallback($_GET['query'], &quot;&quot;);
 			list($where, $params) = keywords(urldecode($_GET['query']), &quot;body LIKE :query&quot;);
 
-			$where[] = &quot;status = 'spam'&quot;;
+			$where[&quot;status&quot;] = &quot;spam&quot;;
 
-			AdminController::current()-&gt;context[&quot;comments&quot;] = new Paginator(Comment::find(array(&quot;placeholders&quot; =&gt; true, &quot;where&quot; =&gt; $where, &quot;params&quot; =&gt; $params)), 25);
-		}
+			$admin-&gt;display(&quot;manage_spam&quot;,
+			                array(&quot;comments&quot; =&gt; new Paginator(Comment::find(array(&quot;placeholders&quot; =&gt; true,
+			                                                                      &quot;where&quot; =&gt; $where,
+			                                                                      &quot;params&quot; =&gt; $params)),
+			                                                  25)));		}
 
 		static function admin_purge_spam() {
 			if (!Visitor::current()-&gt;group()-&gt;can(&quot;delete_comment&quot;))
@@ -237,7 +240,7 @@
 				show_403(__(&quot;Access Denied&quot;), __(&quot;You do not have sufficient privileges to change settings.&quot;));
 
 			if (empty($_POST))
-				return;
+				return $admin-&gt;display(&quot;comment_settings&quot;);
 
 			if (!isset($_POST['hash']) or $_POST['hash'] != Config::current()-&gt;secure_hashkey)
 				show_403(__(&quot;Access Denied&quot;), __(&quot;Invalid security key.&quot;));
@@ -288,19 +291,19 @@
 			return $pages;
 		}
 
-		public function admin_edit_comment() {
+		public function admin_edit_comment($admin) {
 			if (empty($_GET['id']))
 				error(__(&quot;No ID Specified&quot;), __(&quot;An ID is required to edit a comment.&quot;, &quot;comments&quot;));
 
-			$admin = AdminController::current();
+			$comment = new Comment($_GET['id'], array(&quot;filter&quot; =&gt; false));
 
-			$admin-&gt;context[&quot;comment&quot;] = new Comment($_GET['id'], array(&quot;filter&quot; =&gt; false));
-
-			if (!$admin-&gt;context[&quot;comment&quot;]-&gt;editable())
+			if (!$comment-&gt;editable())
 				show_403(__(&quot;Access Denied&quot;), __(&quot;You do not have sufficient privileges to edit this comment.&quot;, &quot;comments&quot;));
+
+			$admin-&gt;display(&quot;edit_comment&quot;, array(&quot;comment&quot; =&gt; $comment));
 		}
 
-		static function admin_manage_comments() {
+		static function admin_manage_comments($admin) {
 			if (!Comment::any_editable() and !Comment::any_deletable())
 				show_403(__(&quot;Access Denied&quot;), __(&quot;You do not have sufficient privileges to manage any comments.&quot;, &quot;comments&quot;));
 
@@ -313,7 +316,11 @@
 			if (!$visitor-&gt;group()-&gt;can(&quot;edit_comment&quot;, &quot;delete_comment&quot;, true))
 				$where[&quot;user_id&quot;] = $visitor-&gt;id;
 
-			AdminController::current()-&gt;context[&quot;comments&quot;] = new Paginator(Comment::find(array(&quot;placeholders&quot; =&gt; true, &quot;where&quot; =&gt; $where, &quot;params&quot; =&gt; $params)), 25);
+			$admin-&gt;display(&quot;manage_comments&quot;,
+			                array(&quot;comments&quot; =&gt; new Paginator(Comment::find(array(&quot;placeholders&quot; =&gt; true,
+			                                                                      &quot;where&quot; =&gt; $where,
+			                                                                      &quot;params&quot; =&gt; $params)),
+			                                                  25)));
 		}
 
 		static function admin_bulk_comments() {</diff>
      <filename>modules/comments/comments.php</filename>
    </modified>
    <modified>
      <diff>@@ -176,19 +176,17 @@
 
 			$step = 75 / $spread;
 
-			$context = array();
+			$cloud = array();
 			foreach ($tags as $tag =&gt; $count)
-				$context[] = array(&quot;size&quot; =&gt; (100 + (($count - $min_qty) * $step)),
-				                   &quot;popularity&quot; =&gt; $count,
-				                   &quot;name&quot; =&gt; $tag,
-				                   &quot;title&quot; =&gt; sprintf(_p(&quot;%s post tagged with &amp;quot;%s&amp;quot;&quot;, &quot;%s posts tagged with &amp;quot;%s&amp;quot;&quot;, $count, &quot;tags&quot;), $count, $tag),
-				                   &quot;clean&quot; =&gt; $tag2clean[$tag],
-				                   &quot;url&quot; =&gt; url(&quot;tag/&quot;.$tag2clean[$tag]));
-
-			$admin-&gt;context[&quot;tag_cloud&quot;] = $context;
+				$cloud[] = array(&quot;size&quot; =&gt; (100 + (($count - $min_qty) * $step)),
+				                 &quot;popularity&quot; =&gt; $count,
+				                 &quot;name&quot; =&gt; $tag,
+				                 &quot;title&quot; =&gt; sprintf(_p(&quot;%s post tagged with &amp;quot;%s&amp;quot;&quot;, &quot;%s posts tagged with &amp;quot;%s&amp;quot;&quot;, $count, &quot;tags&quot;), $count, $tag),
+				                 &quot;clean&quot; =&gt; $tag2clean[$tag],
+				                 &quot;url&quot; =&gt; url(&quot;tag/&quot;.$tag2clean[$tag]));
 
 			if (!Post::any_editable() and !Post::any_deletable())
-				return;
+				return $admin-&gt;display(&quot;manage_tags&quot;, array(&quot;tag_cloud&quot; =&gt; $cloud));
 
 			fallback($_GET['query'], &quot;&quot;);
 			list($where, $params) = keywords(urldecode($_GET['query']), &quot;xml LIKE :query OR url LIKE :query&quot;);
@@ -197,10 +195,12 @@
 			if (!$visitor-&gt;group()-&gt;can(&quot;view_draft&quot;, &quot;edit_draft&quot;, &quot;edit_post&quot;, &quot;delete_draft&quot;, &quot;delete_post&quot;))
 				$where[&quot;user_id&quot;] = $visitor-&gt;id;
 
-			$admin-&gt;context[&quot;posts&quot;] = new Paginator(Post::find(array(&quot;placeholders&quot; =&gt; true,
-			                                                          &quot;drafts&quot; =&gt; true,
-			                                                          &quot;where&quot; =&gt; $where,
-			                                                          &quot;params&quot; =&gt; $params)), 25);
+			$admin-&gt;display(&quot;manage_tags&quot;, array(&quot;tag_cloud&quot; =&gt; $cloud,
+			                                     &quot;posts&quot; =&gt; new Paginator(Post::find(array(&quot;placeholders&quot; =&gt; true,
+			                                                                               &quot;drafts&quot; =&gt; true,
+			                                                                               &quot;where&quot; =&gt; $where,
+			                                                                               &quot;params&quot; =&gt; $params)),
+			                                                              25)));
 		}
 
 		public function admin_rename_tag($admin) {
@@ -228,22 +228,22 @@
 			list($tags, $clean, $tag2clean,) = self::parseTags($tags, $clean);
 
 			foreach ($tags as $tag =&gt; $count)
-				if ($tag2clean[$tag] == $_GET['name'])
-					return $admin-&gt;context[&quot;tag&quot;] = array(&quot;name&quot; =&gt; $tag, &quot;clean&quot; =&gt; $tag2clean[$tag]);
+				if ($tag2clean[$tag] == $_GET['name']) {
+					$tag = array(&quot;name&quot; =&gt; $tag, &quot;clean&quot; =&gt; $tag2clean[$tag]);
+					continue;
+				}
+
+			$admin-&gt;display(&quot;rename_tag&quot;, array(&quot;tag&quot; =&gt; $tag));
 		}
 
 		public function admin_edit_tags($admin) {
-			$sql = SQL::current();
-
 			if (!isset($_GET['id']))
 				error(__(&quot;No ID Specified&quot;), __(&quot;Please specify the ID of the post whose tags you would like to edit.&quot;, &quot;tags&quot;));
 
-			$admin-&gt;context[&quot;post&quot;] = new Post($_GET['id']);
+			$admin-&gt;display(&quot;edit_tags&quot;, array(&quot;post&quot; =&gt; new Post($_GET['id'])));
 		}
 
 		public function admin_update_tags($admin) {
-			$sql = SQL::current();
-
 			if (!isset($_POST['hash']) or $_POST['hash'] != Config::current()-&gt;secure_hashkey)
 				show_403(__(&quot;Access Denied&quot;), __(&quot;Invalid security key.&quot;));
 </diff>
      <filename>modules/tags/tags.php</filename>
    </modified>
    <modified>
      <diff>@@ -63,6 +63,7 @@ ${ trigger.call(&quot;sidebar&quot;) }
 						&lt;span class=&quot;sub&quot;&gt;($archive.count)&lt;/span&gt;
 					&lt;/li&gt;
 {% endfor %}
+					&lt;li&gt;&lt;a href=&quot;{% url &quot;archive&quot; %}&quot;&gt;${ &quot;All &amp;rarr;&quot; | translate }&lt;/a&gt;&lt;/li&gt;
 				&lt;/ul&gt;
 {% endif %}
 			&lt;/div&gt;
\ No newline at end of file</diff>
      <filename>themes/stardust/content/sidebar.twig</filename>
    </modified>
    <modified>
      <diff>@@ -14,7 +14,7 @@ ruby gettext.rb ./modules/comments/     --domain=comments     &gt; ./modules/commen
 ruby gettext.rb ./modules/markdown/     --domain=markdown     &gt; ./modules/markdown/locale/en_US.pot
 ruby gettext.rb ./modules/paging/       --domain=paging       &gt; ./modules/paging/locale/en_US.pot
 ruby gettext.rb ./modules/read_more/    --domain=read_more    &gt; ./modules/read_more/locale/en_US.pot
-ruby gettext.rb ./modules/aggregator/          --domain=aggregator          &gt; ./modules/aggregator/locale/en_US.pot
+ruby gettext.rb ./modules/aggregator/   --domain=aggregator   &gt; ./modules/aggregator/locale/en_US.pot
 ruby gettext.rb ./modules/smartypants/  --domain=smartypants  &gt; ./modules/smartypants/locale/en_US.pot
 ruby gettext.rb ./modules/tags/         --domain=tags         &gt; ./modules/tags/locale/en_US.pot
 ruby gettext.rb ./modules/textilize/    --domain=textilize    &gt; ./modules/textilize/locale/en_US.pot</diff>
      <filename>update_gettext</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>1566dd3fc416b03fa43568c84ec26d7fdc310c9f</id>
    </parent>
  </parents>
  <author>
    <name>Alex Suraci</name>
    <email>i.am@toogeneric.com</email>
  </author>
  <url>http://github.com/vito/chyrp-site/commit/d689e3db19579f991e8130ec5992ceb9d252fb36</url>
  <id>d689e3db19579f991e8130ec5992ceb9d252fb36</id>
  <committed-date>2008-09-21T11:21:12-07:00</committed-date>
  <authored-date>2008-09-21T11:21:12-07:00</authored-date>
  <message>Fixed various module admin pages.</message>
  <tree>1829eaeae105b10c4e5ece40c78d5ead2ddeae53</tree>
  <committer>
    <name>Alex Suraci</name>
    <email>i.am@toogeneric.com</email>
  </committer>
</commit>
