summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2016-04-29 06:58:00 +0000
committergebele <gebele@in-silico.ch>2016-04-29 06:58:00 +0000
commit02357098113713b5ac5268ac19bf9443804c930e (patch)
treea47e5af668b81453a6d5991558e266460a9f5436
parent6c330fdcdf4ac941b0dab1aeb1add75bb5c4eae2 (diff)
changed share and acknowledgement always visible
-rwxr-xr-xpublic/images/Facebook.pngbin0 -> 318 bytes
-rw-r--r--views/layout.haml59
-rw-r--r--views/style.scss18
3 files changed, 35 insertions, 42 deletions
diff --git a/public/images/Facebook.png b/public/images/Facebook.png
new file mode 100755
index 0000000..3d249fd
--- /dev/null
+++ b/public/images/Facebook.png
Binary files differ
diff --git a/views/layout.haml b/views/layout.haml
index 5965ee1..43e1233 100644
--- a/views/layout.haml
+++ b/views/layout.haml
@@ -32,11 +32,22 @@
%h1.media-heading
%small
%a{:href=>"https://nano-lazar.in-silico.ch"} nano-lazar
- %a{:href=>"http://lazar-old.in-silico.ch"} lazar-old version
%div.container-fluid
- Problems, bugs, ideas for improvements ? Please report at our
- %a{:href => 'https://github.com/opentox/lazar-gui/issues', :rel => "external"} issue tracker
+ %topline
+ Problems, bugs, ideas for improvements ? Please report at our
+ %a{:href => 'https://github.com/opentox/lazar-gui/issues', :rel => "external"} issue tracker.
+ |
+ %a{:href=>"http://lazar-old.in-silico.ch"} lazar-old version
+ |
+ %a{:href=>"https://twitter.com/intent/tweet?source=http%3A%2F%2Flazar.in-silico.ch&text=:%20http%3A%2F%2Flazar.in-silico.ch", :target=>"_blank", :title=>"Tweet"}
+ %img.share{:src=>"/images/Twitter.png"}
+ %a{:href=>"https://plus.google.com/share?url=http%3A%2F%2Flazar.in-silico.ch", :target=>"_blank", :title=>"Share on Google+"}
+ %img.share{:src=>"/images/Google+.png"}
+ %a{:href=>"http://www.linkedin.com/shareArticle?mini=true&url=http%3A%2F%2Flazar.in-silico.ch&title=&summary=&source=http%3A%2F%2Flazar.in-silico.ch", :target=>"_blank", :title=>"Share on LinkedIn"}
+ %img.share{:src=>"/images/LinkedIn.png"}
+ %a{:href=>"https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Flazar.in-silico.ch&title=&summary=&source=http%3A%2F%2Flazar.in-silico.ch", :target=>"_blank", :title=>"Share on Facebook"}
+ %img.share{:src=>"/images/Facebook.png"}
:javascript
$(document).ready(function(){
$("#back-top").hide();
@@ -56,41 +67,21 @@
%footer.footer
%div.container-fluid
%div.row
- %div.col-md-8
+ %div.col-md-12
%p.text-muted
&copy;
%a{:href => 'http://www.in-silico.ch', :rel => "external"} <i style="font-family: serife">in silico</i> toxicology gmbh 2004 - #{Time.now.year.to_s}
- %div.col-md-4
- %button.btn.btn-default{:type=>"button", :data=>{:toggle=>"modal", :target=>"#acknowledgements"}} acknowledgements
- %div.modal.fade{:id=>"acknowledgements", :role=>"dialog"}
- %div.modal-dialog
- %div.modal-content
- %div.modal-header
- %button{:type=>"button", :class=>"close", :data=>{:dismiss=>"modal"}}
- &times;
- %h4.modal-title Financial support:
- %div.modal-body
- %a{:href=>"http://www.bfr.bund.de/de/start.html", :target=>"_blank"}
- %img{:src=>"/images/bfr_logo.gif"}
- %a{:href=>"http://www.opentox.org/", :target=>"_blank"}
- %img{:src=>"/images/ot_logo.png"}
- %a{:href=>"https://enanomapper.net/", :target=>"_blank"}
- %img{:src=>"/images/enm_logo.png"}
- %a{:href=>"https://www.researchgate.net/institution/Nestle_SA/department/Nestle_Research_Center", :target=>"_blank"}
- %img{:src=>"/images/nestec.jpg"}
+ %supporters.col-md-12
+ %p Financial support:
+ %a{:href=>"http://www.bfr.bund.de/de/start.html", :target=>"_blank"}
+ %img{:src=>"/images/bfr_logo.gif"}
+ %a{:href=>"http://www.opentox.org/", :target=>"_blank"}
+ %img{:src=>"/images/ot_logo.png"}
+ %a{:href=>"https://enanomapper.net/", :target=>"_blank"}
+ %img{:src=>"/images/enm_logo.png"}
+ %a{:href=>"https://www.researchgate.net/institution/Nestle_SA/department/Nestle_Research_Center", :target=>"_blank"}
+ %img{:src=>"/images/nestec.jpg"}
- %div.btn-group.dropup
- %button.btn.btn-default.dropdown-toggle{:data=>{:toggle=>"dropdown"}, :aria=>{:haspopup=>"true", :expanded=>"false"}} share
- %ul.dropdown-menu{:class=>"share-buttons"}
- %li
- %a{:href=>"https://twitter.com/intent/tweet?source=http%3A%2F%2Flazar.in-silico.ch&text=:%20http%3A%2F%2Flazar.in-silico.ch", :target=>"_blank", :title=>"Tweet"}
- %img{:src=>"/images/Twitter.png"}
- %li
- %a{:href=>"https://plus.google.com/share?url=http%3A%2F%2Flazar.in-silico.ch", :target=>"_blank", :title=>"Share on Google+"}
- %img{:src=>"/images/Google+.png"}
- %li
- %a{:href=>"http://www.linkedin.com/shareArticle?mini=true&url=http%3A%2F%2Flazar.in-silico.ch&title=&summary=&source=http%3A%2F%2Flazar.in-silico.ch", :target=>"_blank", :title=>"Share on LinkedIn"}
- %img{:src=>"/images/LinkedIn.png"}
#back-top{:style => "z-index:100;position:fixed;bottom:1%;right:1%;"}
%a{:href => "", :style=>"text:decoration:none;color:#ccc;"}
diff --git a/views/style.scss b/views/style.scss
index 77c7c4e..49e03ab 100644
--- a/views/style.scss
+++ b/views/style.scss
@@ -56,13 +56,15 @@ ul.share-buttons{
display:inline-block;
width:98.5%;
}
-.footer .modal img{
- width: 250px;
- padding: 1em;
+.share{
+ width: 30px;
+ padding-right: 5px;
}
-footer button{
- padding-bottom: 1em !important;
-}
-.dropdown-menu img{
- margin-left: 0.7em;
+supporters{
+ background-color: white;
+
+ img{
+ width: 200px;
+ margin-right: 1em;
+ }
}