]> git.openstreetmap.org Git - rails.git/commitdiff
Cleanup notes and fix CSS error
authorSaman Bemel-Benrud <samanpwbb@gmail.com>
Wed, 12 Jun 2013 23:23:58 +0000 (19:23 -0400)
committerTom Hughes <tom@compton.nu>
Mon, 8 Jul 2013 08:03:17 +0000 (09:03 +0100)
app/assets/javascripts/templates/notes/new.jst.ejs
app/assets/javascripts/templates/notes/show.jst.ejs
app/assets/stylesheets/common.css.scss
app/views/layouts/site.html.erb

index 2f12227fd23f9e04b6c0ef9ae853bcf88f250c4c..a4ea5079ae31dc908ed3faf3b1e11fa20b5cf8a0 100644 (file)
@@ -5,7 +5,7 @@
     <input type="hidden" name="lat">
     <textarea class="comment" name="text" cols="40" rows="10"></textarea>
     <br/>
-    <div class="buttons">
+    <div class="buttons clearfix">
       <input type="submit" name="add" value="<%- I18n.t('javascripts.notes.new.add') %>" data-url="<%- create_url %>" disabled="1">
     </div>
   </form>
index 25dc10735b9cd861fdc946a564d72a51a1761f7f..cc81bb9d324f840fd14d815ebf46de1fb61794a0 100644 (file)
   <% if (note.status == "open") { %>
   <form action="#">
     <textarea class="comment" name="text" cols="40" rows="5"></textarea>
-    <div class="buttons">
-      <input type="submit" name="hide" value="<%- I18n.t('javascripts.notes.show.hide') %>" class="hide_unless_moderator" data-method="DELETE" data-url="<%- note.url %>">
+    <div class="buttons clearfix">
       <input type="submit" name="close" value="<%- I18n.t('javascripts.notes.show.resolve') %>" class="hide_unless_logged_in" data-method="POST" data-url="<%- note.close_url %>">
+      <input type="submit" name="hide" value="<%- I18n.t('javascripts.notes.show.hide') %>" class="hide_unless_moderator" data-method="DELETE" data-url="<%- note.url %>">
       <input type="submit" name="comment" value="<%- I18n.t('javascripts.notes.show.comment') %>" data-method="POST" data-url="<%- note.comment_url %>" disabled="1">
     </div>
   </form>
   <% } else { %>
   <form action="#">
     <input type="hidden" name="text" value="">
-    <div class="buttons">
+    <div class="buttons clearfix">
       <input type="submit" name="hide" value="<%- I18n.t('javascripts.notes.show.hide') %>" class="hide_unless_moderator" data-method="DELETE" data-url="<%- note.url %>">
       <input type="submit" name="reopen" value="<%- I18n.t('javascripts.notes.show.reactivate') %>" class="hide_unless_logged_in" data-method="POST" data-url="<%- note.reopen_url %>">
     </div>
index 148d4368a02da5f93a6bf4068959a1b673487c53..7331e201a40d3406d4ac07590198be5341f29b24 100644 (file)
@@ -391,7 +391,7 @@ table {
 
 .donate {
   display: block;
-  width: 164px;
+  width: 163px;
   padding: $lineheight/4;
   border: 1px solid #AED1A0;
   background: #cbeea7;
@@ -440,7 +440,7 @@ table {
 }
 
 #tabnav {
-  height: 30px;
+  height: 29px;
   margin-bottom:0;
   overflow: hidden;
   li {
@@ -1034,6 +1034,7 @@ ul.results-list li { border-bottom: 1px solid #ccc; }
 /* Rules for the user profile page */
 
 #userinformation {
+
   min-height: 100px;
   .userinformation-inner {
     float: left;
@@ -1072,13 +1073,13 @@ ul.results-list li { border-bottom: 1px solid #ccc; }
 }
 
 .activity-details p {
-  margin-left: 72px;
+  margin-left: 70px;
   margin-bottom: 0;
 }
 
 #friends-container .contact-activity ul {
-  margin-left: 72px;
-  }
+  margin-left: 70px;
+}
 
 .user-view {
   p#no_home_location {
@@ -1101,16 +1102,11 @@ ul.results-list li { border-bottom: 1px solid #ccc; }
 
 .user_popup {
   min-width: 200px;
-
   p {
-    padding-top: 0;
-    padding-bottom: 5px;
-    margin-top: 0;
-    margin-bottom: 0;
-    margin-left: 60px;
+    padding: 0 0 5px 0;
+    margin-top: 0 0 0 60px;
     font-size: 12px;
   }
-
   img.user_thumbnail {
     float: left;
     margin: 0 $lineheight/2 0 0;
@@ -1599,6 +1595,8 @@ ul.secondary-actions {
 
 .inner12 { padding: $lineheight/2 $lineheight;}
 
+.inner11 { padding: $lineheight/2;}
+
 .inner02 { padding: 0 $lineheight;}
 
 /* Utility for general button styles */
@@ -1923,16 +1921,8 @@ a.button {
   border-bottom: 1px solid #ccc;
 }
 
-.ads {
-  width: 370px;
-  position: absolute;
-  left: 0%;
-}
-
 .ad {
-  float: left;
-  height: 120px;
-  padding: $lineheight/2;
-  border: 0px;
+  height: 100px;
+  border: 0;
   background: #fff;
 }
index 542bcca2adac2e659f284d7f30eadfb07f0ded1e..65723d97f9c2c619b6512510f3b7e7966fda720a 100644 (file)
@@ -65,7 +65,7 @@
         </li>
         <%= yield :left_menu %>
       </ul>
-      <div class='ad-container'>
+      <div class='ad-container inner11'>
         <div class='ads'>
           <%= ad = [{:image => 'sotm-birmingham-ad.png',
                      :title => 'State of the Map Birmingham',