diff --git a/Gemfile b/Gemfile index 8537a9e532..a9a5d99fa6 100644 --- a/Gemfile +++ b/Gemfile @@ -70,6 +70,7 @@ gem 'lemmatizer', '~> 0.2.2' gem 'mailman', require: false # To implement fontawesome v4.7.0 gem "font-awesome-rails" + gem "lazyload-rails" # To convert html to markdown gem 'reverse_markdown' diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 2a0bed10da..b36ea514b1 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -16,6 +16,7 @@ // //= require jquery //= require jquery_ujs +//= require jquery-lazyload/jquery.lazyload.js //= require debounce/index.js //= require bootstrap/dist/js/bootstrap.bundle.min.js //= require bootstrap-3-typeahead/bootstrap3-typeahead.min.js @@ -60,4 +61,4 @@ //= require validation.js //= require submit_form_ajax.js //= require urlMapHash.js -//= require spam2.js \ No newline at end of file +//= require spam2.js diff --git a/app/views/dashboard/_node_default.html.erb b/app/views/dashboard/_node_default.html.erb index 72abf63bfa..ba40a1f4ff 100644 --- a/app/views/dashboard/_node_default.html.erb +++ b/app/views/dashboard/_node_default.html.erb @@ -4,9 +4,9 @@ <%= render partial: 'dashboard/node_moderate', locals: { node: node } %> <% if node.main_image %> - + <%= image_tag(node.main_image.path(:default), style:'width:100%;') %> <% elsif node.scraped_image %> - + <%= image_tag(node.scraped_image, style:'width:100%;') %> <% end %>
Learn about privacy
-<%= raw auto_link(RDiscount.new(@profile_user.bio || '').to_html, :sanitize => false) %>
- <%end%> + <%end%>