fix for supporter heart in comments

This commit is contained in:
Kyle Drake 2014-11-17 23:47:05 -08:00
parent b33f9f57ad
commit 08ae90d601
2 changed files with 3 additions and 3 deletions

2
app.rb
View file

@ -124,7 +124,7 @@ post '/settings/create_child' do
if site.valid? if site.valid?
site.save site.save
flash[:success] = 'Your new site has been created!' flash[:success] = 'Your new site has been created! To manage it, click your username in the top right and go to "Switch Site".'
redirect '/settings#sites' redirect '/settings#sites'
else else
flash[:error] = site.errors.first.last.first flash[:error] = site.errors.first.last.first

View file

@ -1,5 +1,5 @@
<% actioning_site = profile_comment.actioning_site_dataset.select(:id, :username, :stripe_customer_id).first %> <% actioning_site = profile_comment.actioning_site_dataset.select(:id, :username, :stripe_customer_id, :plan_type, :parent_site_id).first %>
<% site = profile_comment.site_dataset.select(:id, :username, :stripe_customer_id).first %> <% site = profile_comment.site_dataset.select(:id, :username, :stripe_customer_id, :plan_type, :parent_site_id).first %>
<div class="title"> <div class="title">
<a href="/site/<%= actioning_site.username %>" class="icon" style="background-image:url(<%= actioning_site.screenshot_url('index.html', '100x100') %>);"></a> <a href="/site/<%= actioning_site.username %>" class="icon" style="background-image:url(<%= actioning_site.screenshot_url('index.html', '100x100') %>);"></a>