From 06fd8f9c52b9b1edffca4994f7411c60e45ccb18 Mon Sep 17 00:00:00 2001 From: albert Date: Sun, 17 Feb 2013 15:23:48 -0500 Subject: [PATCH] add link for tag subscription edit --- app/assets/stylesheets/common/main_layout.css.scss | 2 +- app/presenters/user_presenter.rb | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/assets/stylesheets/common/main_layout.css.scss b/app/assets/stylesheets/common/main_layout.css.scss index 70dc5acee..dd177f805 100644 --- a/app/assets/stylesheets/common/main_layout.css.scss +++ b/app/assets/stylesheets/common/main_layout.css.scss @@ -25,7 +25,7 @@ div#page { } aside#sidebar { - width: 15%; + width: 15em; float: left; h1 { diff --git a/app/presenters/user_presenter.rb b/app/presenters/user_presenter.rb index d6ea6c938..af6759d8a 100644 --- a/app/presenters/user_presenter.rb +++ b/app/presenters/user_presenter.rb @@ -115,9 +115,11 @@ class UserPresenter def subscriptions(template) if user.subscriptions.any? - user.subscriptions.map do |subscription| + str = user.subscriptions.map do |subscription| template.link_to(subscription.name, template.posts_path(:tags => "sub:#{user.name}:#{subscription.name}")) - end.join(", ").html_safe + end.join(", ") + s += " [" + template.link_to("edit", template.tag_subscriptions_path) + "]" + str.html_safe else "None" end