Small fixes/adjustments (#6501) [deploy]

This commit is contained in:
Ben Halpern 2020-03-06 09:28:42 -05:00 committed by GitHub
parent afc8594dd9
commit e19a1a43be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 3 deletions

View file

@ -68,7 +68,7 @@ class StoriesController < ApplicationController
order("hotness_score DESC")
@campaign_articles_count = campaign_articles_scope.count
@latest_campaign_articles = campaign_articles_scope.limit(3).pluck(:path, :title, :comments_count, :created_at)
@latest_campaign_articles = campaign_articles_scope.limit(5).pluck(:path, :title, :comments_count, :created_at)
end
def redirect_to_changed_username_profile

View file

@ -1,6 +1,6 @@
<div class="widget">
<% if SiteConfig.campaign_sidebar_image %>
<img src="<%= SiteConfig.campaign_sidebar_image %>" class="widget-image" />
<img src="<%= SiteConfig.campaign_sidebar_image %>" class="widget-image" style="height:116px;" />
<% end %>
<header>
<h4>

View file

@ -10,7 +10,6 @@
<% if @hero_html %>
<div id="hero-html-wrapper">
<script>
console.log(localStorage.getItem('exited_hero'))
if (localStorage.getItem('exited_hero') === 'shecoded') {
document.getElementById('hero-html-wrapper').style.display = 'none';
}