Commits

Kenneth Love  committed 618c4b5

added icon for add new key. removed existing link

  • Participants
  • Parent commits 7cf7b5a

Comments (0)

Files changed (4)

File static/css/style.css

   }
   #keyheader h1 {
     float:left;
+    margin-right:10px;
   }
   .filterform {
-    float:right;
   }
     .filterform input[type=search] {
-      width:250px;
+      width:125px;
+    }
+    #key_controls {
+      float:right;
     }
     #refresh_keys {
       background:url('../img/loop.png') center center no-repeat;
       display:block;
       float:left;
       height:20px;
+      width:12px;
+      text-indent:-99999px;
+    }
+    #add_key {
+      background:url('../img/add.png') center center no-repeat;
+      display:block;
+      float:left;
+      height:20px;
       margin-right:10px;
       width:12px;
       text-indent:-99999px;

File static/img/add.png

Added
New image

File static/js/redbeard.js

             'type': 'search',
             'placeholder': 'Filter'
         }),
+        controls = $('<div>').attr({
+            'id': 'key_controls'
+        }),
+        add_key = $('<a>').attr({
+            'href': '/new',
+            'id': 'add_key',
+            'title': 'add new key'
+        }).text('add new key');
         refresh = $('<a>').attr({
             'href': '/keys',
             'id': 'refresh_keys',
         }).text('refresh keys');
 
 
-    $(form).append(refresh).append(input).appendTo(header);
+    $(controls).append(add_key).append(refresh);
+    $(form).append(input).append(controls).appendTo(header);
 
     $(input).change(function() {
         var filter = $(this).val();

File templates/layout.html

 		<fieldset>
 			<label for="id_redis_db">Current Redis DB:</label>
 			<input type="number" name="redis_db" id="id_redis_db" value="{{ session.redis_db }}">
-			<a href="/new" id="new_key">New Key</a>
 		</fieldset>
 	</form>