hides the annotator adder when the user is not logged in

This commit is contained in:
kikito
2015-12-17 17:49:51 +01:00
parent 5e067e8447
commit 555d409474
2 changed files with 14 additions and 0 deletions

View File

@@ -15,6 +15,14 @@
sizes: "200x200", sizes: "200x200",
type: "image/png" %> type: "image/png" %>
<%= content_for :social_media_meta_tags %> <%= content_for :social_media_meta_tags %>
<% unless user_signed_in? %>
<style type="text/css">
.annotator-adder {
border: 1px solid red;
display: none;
}
</style>
<% end %>
</head> </head>
<body> <body>
<div class="wrapper"> <div class="wrapper">

View File

@@ -1,3 +1,9 @@
<% unless user_signed_in? %>
<style type="text/css">
.annotator-adder { display: none; }
</style>
<% end %>
<section data-annotatable-type="legislation" <section data-annotatable-type="legislation"
data-annotatable-id="<%= @legislation.id %>"> data-annotatable-id="<%= @legislation.id %>">