[Git][noosfero/noosfero][master] 2 commits: Fixes img size when just one image is uploaded
Gabriel Silva
gitlab at mg.gitlab.com
Thu Aug 29 23:33:26 BRT 2019
Gabriel Silva pushed to branch master at Noosfero / noosfero
Commits:
860057ea by Matheus Richard at 2019-08-23T13:49:32Z
Fixes img size when just one image is uploaded
- - - - -
8152e891 by Gabriel Silva at 2019-08-30T02:33:23Z
Merge branch 'fix-upload-image-css' into 'master'
Fixes img size when just one image is uploaded
Closes #338
See merge request noosfero/noosfero!1711
- - - - -
1 changed file:
- app/helpers/action_tracker_helper.rb
Changes:
=====================================
app/helpers/action_tracker_helper.rb
=====================================
@@ -47,7 +47,9 @@ module ActionTrackerHelper
tag(:hr) +
ta.collect_group_with_index(:thumbnail_path) do |t,i|
if total == 1
- link_to image_tag(t), ta.get_view_url[i], class: 'upimg'
+ link_to ' '.html_safe, ta.get_view_url[i],
+ style: "background-image:url(#{t})",
+ class: "upimg"
else
pos = total-i;
morethen2 = pos>2 ? 'morethen2' : ''
View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/285390b653cd9ca887715565611db0d8174bd156...8152e8916a191948b694469ebdbeec0d78ab1353
--
View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/285390b653cd9ca887715565611db0d8174bd156...8152e8916a191948b694469ebdbeec0d78ab1353
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20190830/6b872a51/attachment-0001.html>
More information about the Noosfero-dev
mailing list