diff options
-rw-r--r-- | app/views/refinery/banners/shared/_banner_image.html.erb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/views/refinery/banners/shared/_banner_image.html.erb b/app/views/refinery/banners/shared/_banner_image.html.erb index ffaebae..c13a637 100644 --- a/app/views/refinery/banners/shared/_banner_image.html.erb +++ b/app/views/refinery/banners/shared/_banner_image.html.erb @@ -14,4 +14,8 @@ You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. %> -<%= link_to(image_fu(banner_image.image, '500x'), banner_image.url, :target => "_blank") %> +<% if banner_image.image.image_mime_type == "image/gif" %> + <%= link_to(image_tag(banner_image.image.url), banner_image.url, :target => "_blank") %> +<% else %> + <%= link_to(image_fu(banner_image.image, '500x'), banner_image.url, :target => "_blank") %> +<% end %> |