Skip to content
Snippets Groups Projects
Commit 8caeba6c authored by Mateus Rambo Strey's avatar Mateus Rambo Strey
Browse files

add download link to learning objects

parent efa50ff9
No related branches found
No related tags found
No related merge requests found
......@@ -80,13 +80,15 @@ $background-grey: #e7e7e8;
.actions {
text-align: center;
color: #F05421;
font-weight: 400;
.action {
margin-top: 10px;
padding: 0;
a {
color: #F05421;
font-weight: 400;
}
img {
width: 40px;
height: 40px;
......
......@@ -52,6 +52,14 @@ class LearningObject
end
end
def get_retrievelink
get_bitstream_retrievelink_of "ORIGINAL"
end
def get_filename
get_bitstream_filename_of "ORIGINAL"
end
private
def defaults
......
......@@ -74,8 +74,10 @@
</div>
<div class="actions">
<div class="col-md-3 action">
<%= image_tag "icons/download.png", alt: "Download do objeto" %>
<h6>salvar no computador</h6>
<a href="<%= @learning_object.get_retrievelink %>">
<%= image_tag "icons/download.png", alt: "Download do objeto" %>
<h6>salvar no computador</h6>
</a>
</div>
<div class="col-md-3 action">
<%= image_tag "icons/collection-add.png", alt: "Adicionar à coleção" %>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment