add link for tag subscription edit
This commit is contained in:
@@ -25,7 +25,7 @@ div#page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
aside#sidebar {
|
aside#sidebar {
|
||||||
width: 15%;
|
width: 15em;
|
||||||
float: left;
|
float: left;
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
|
|||||||
@@ -115,9 +115,11 @@ class UserPresenter
|
|||||||
|
|
||||||
def subscriptions(template)
|
def subscriptions(template)
|
||||||
if user.subscriptions.any?
|
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}"))
|
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
|
else
|
||||||
"None"
|
"None"
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user