Updated content blocks in sidebar and in footer
Change-Id: I1c2dccd67e40a3099f7bbac4bebb255f790dbbdd
diff --git a/Makefile.PL b/Makefile.PL
index c86b89b..22f10c6 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -33,7 +33,7 @@
# Currently on GitHub only (github.com/akron)
'Mojolicious::Plugin::Search' => 0.07,
'Mojolicious::Plugin::Localize' => 0.17,
- 'Mojolicious::Plugin::TagHelpers::ContentBlock' => 0.05,
+ 'Mojolicious::Plugin::TagHelpers::ContentBlock' => 0.08,
},
test => {
TESTS => 't/*.t'
diff --git a/dev/scss/footer/footer.scss b/dev/scss/footer/footer.scss
index 15a98b1..0581985 100644
--- a/dev/scss/footer/footer.scss
+++ b/dev/scss/footer/footer.scss
@@ -28,4 +28,10 @@
content: none
}
}
+ span.separator {
+ &:after {
+ content: "-";
+ color: $light-grey;
+ }
+ }
}
diff --git a/dev/scss/media.scss b/dev/scss/media.scss
index 277226f..636e1db 100644
--- a/dev/scss/media.scss
+++ b/dev/scss/media.scss
@@ -150,7 +150,7 @@
&::after {
display: none;
}
- p {
+ p, hr {
display: none;
}
}
diff --git a/lib/Kalamar.pm b/lib/Kalamar.pm
index 8b920b7..6e1caec 100644
--- a/lib/Kalamar.pm
+++ b/lib/Kalamar.pm
@@ -172,10 +172,10 @@
};
# Set footer value
- $self->content_block(footer => (
+ $self->content_block(footer => {
inline => '<%= doc_link_to "V ' . $Kalamar::VERSION . '", "korap", "kalamar" %>',
position => 100
- ));
+ });
# Base query route
$r->get('/')->to('search#query')->name('index');
diff --git a/templates/partial/footer.html.ep b/templates/partial/footer.html.ep
index f1c8d76..667a87f 100644
--- a/templates/partial/footer.html.ep
+++ b/templates/partial/footer.html.ep
@@ -1,3 +1,3 @@
<footer>
- %= content_block 'footer'
+ %= content_block 'footer', separator => '<span class="separator"></span>'
</footer>
diff --git a/templates/partial/side.html.ep b/templates/partial/side.html.ep
index 0cdc6fb..3212adf 100644
--- a/templates/partial/side.html.ep
+++ b/templates/partial/side.html.ep
@@ -16,7 +16,7 @@
</div>
% end
- %= content_block 'loginInfo'
+ %= content_block 'loginInfo', separator => '<hr />'
%# <ul>
%# <li><%= link_to loc('register') => 'register' %></li>