zeus.ugent.be/layouts/partials/_project.erb

26 lines
1.1 KiB
Text
Raw Normal View History

2019-10-08 13:08:13 +02:00
<div id="<%= project.identifier.without_ext.split('/')[-1] %>" class="container project content column is-5 is-desktop">
2016-10-03 21:56:08 +02:00
<article class="columns is-mobile">
<div class="column is-gapless is-narrow logo-wrapper">
2016-12-11 22:39:56 +01:00
<% if project[:logo_image] %>
<div class="logo">
<%= asset :img, project[:logo_image] %>
</div>
<% else %>
<div class="logo" style="background-color: <%= project[:logo_color]%>">
<div class="logo-initial has-text-centered"><%= project[:logo_letter]%></div>
</div>
<% end %>
2016-10-03 21:56:08 +02:00
</div>
<div class="column">
2016-12-11 01:15:43 +01:00
<p class="title"><a href="<%= project[:site] %>" target="_self"><%= project[:title] %></a></p>
2017-04-05 17:18:55 +02:00
<%= project.compiled_content %>
2019-10-08 01:58:01 +02:00
<% if project[:github] %>
<div><a href="<%= project[:github] %>"><span class="icon"><%= fa('github') %></span> GitHub</a></div>
<% end %>
<% if project[:gitlab] %>
<div><a href="<%= project[:gitlab] %>"><span class="icon"><%= fa('gitlab') %></span> GitLab</a></div>
<% end %>
2016-10-03 21:56:08 +02:00
</div>
</article>
</div>