Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcia Ramos <virtua.creative@gmail.com>2018-01-17 19:14:14 +0300
committerMarcia Ramos <virtua.creative@gmail.com>2018-01-17 19:14:14 +0300
commitef1cbdc41ea83155a4bb3b11b5d2e5f201436efc (patch)
treed9706c7364f1bcbe2e6b2407d7d01a3715182bc2 /layouts
parent58539b4797c8109a09df7673ec1ba2cfe0e45967 (diff)
add articles metadata to default layout
TBA: if statement: if there’s @item[:author] => display article-metadata
Diffstat (limited to 'layouts')
-rw-r--r--layouts/default.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/layouts/default.html b/layouts/default.html
index b0c9b7c5..04cd24a4 100644
--- a/layouts/default.html
+++ b/layouts/default.html
@@ -19,6 +19,18 @@
<% end %>
<% end %>
<%= yield %>
+ <div class="article-metadata">
+ Written by <a href="https://gitlab.com/<%= @item[:author_gitlab] %>" target="_blank"><%= @item[:author] %></a>
+ on <%= @item[:date] %>
+ &#8226;
+ <% if @item[:last_updated] %>
+ Last updated: <%= @item[:last_updated] %>
+ &#8226;
+ <% end %>
+ Type: <%= @item[:article_type] %>
+ &#8226;
+ Level: <%= @item[:level] %>
+ </div>
<hr>
<div class="edit-on">
<%= edit_on_gitlab(@item) %>