logos: LET THEM GROW, CAN'T HOLD THEM BACK ANYMORE
This commit is contained in:
parent
eca892cf41
commit
c6cb2848c8
4 changed files with 8 additions and 11 deletions
|
@ -672,8 +672,9 @@ h2 {
|
|||
}
|
||||
|
||||
.detail_title > a > img {
|
||||
max-width:100px;
|
||||
max-height: 100px;
|
||||
max-width: 100%;
|
||||
min-width: 52px;
|
||||
}
|
||||
|
||||
.detail_title h2 {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<div class="detail-body">
|
||||
<div class="detail_title">
|
||||
<a target="_blank" href="<%= item[:website] %>"><img src="<%= small_image_url(item) %>" alt="<%= item[:naam] %>" width=auto height=auto></a>
|
||||
<a target="_blank" href="<%= item[:website] %>"><img src="<%= image_url(item, size="large") %>" alt="<%= item[:naam] %>" width=auto height=auto></a>
|
||||
<h2><%= item[:naam] %></h2>
|
||||
<% if item[:themas] %>
|
||||
<div class="detail_title_themas">
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<a class="link" href="<%=item.path%>">
|
||||
<div class="link__img">
|
||||
<img src="<%= small_image_url(item) %>" alt="<%= item[:naam] %>">
|
||||
<img src="<%= image_url(item, size="small") %>" alt="<%= item[:naam] %>">
|
||||
</div>
|
||||
<div class="link__content">
|
||||
<h3 class="link__title">
|
||||
|
|
|
@ -69,20 +69,16 @@ module VerenigingenHelper
|
|||
@items.find_all("**/verenigingen/*") + @items.find_all("**/konventen/*")
|
||||
end
|
||||
|
||||
def image_url(item)
|
||||
def image_url(item, size="medium")
|
||||
if item[:logo].nil?
|
||||
"https://dsa.ugent.be/api/verenigingen/#{ abbreviation item }/logo?size=medium"
|
||||
"https://dsa.ugent.be/api/verenigingen/#{ abbreviation item }/logo?size=#{ size }"
|
||||
else
|
||||
item[:logo]
|
||||
end
|
||||
end
|
||||
|
||||
def small_image_url(item)
|
||||
if item[:logo].nil?
|
||||
"https://dsa.ugent.be/api/verenigingen/#{ abbreviation item }/logo?size=small"
|
||||
else
|
||||
item[:logo]
|
||||
end
|
||||
image_url(item, size="small")
|
||||
end
|
||||
|
||||
def image_tag(item)
|
||||
|
|
Loading…
Reference in a new issue