artifact 0.0.6 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -83,17 +83,39 @@ h2 {
83
83
  color: #000;
84
84
  background: none;
85
85
  }
86
-
87
86
  .dark .btn:hover, .dark .btn:focus {
88
87
  border-color: #fff;
89
88
  color: #fff;
90
89
  }
91
90
 
91
+ /* navbar
92
+ --------------------------------------------------------------*/
93
+
94
+ .navbar {
95
+ min-height: 50px;
96
+ }
97
+
98
+ .navbar .artifact {
99
+ font-weight: bold;
100
+ color: white;
101
+ font-size: 21px;
102
+ }
103
+
92
104
  .menu .btn {
93
105
  position: relative;
94
106
  top: 3px;
95
107
  }
96
108
 
109
+ .menu a.btn {
110
+ padding: 7px 20px;
111
+ color: #ccc;
112
+ }
113
+
114
+ .menu li {
115
+ margin-top: 3px;
116
+ margin-left: 5px;
117
+ }
118
+
97
119
 
98
120
  /* search
99
121
  --------------------------------------------------------------*/
@@ -176,6 +198,9 @@ h2 {
176
198
  border: 3px solid #ccc;
177
199
  border-radius: 5px;
178
200
  background: #f2f2f2;
201
+ position: absolute;
202
+ right: 0px;
203
+ top: 5px;
179
204
  }
180
205
 
181
206
  #post-title,
@@ -1,3 +1,3 @@
1
1
  module Artifact
2
- VERSION = "0.0.6"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -13,7 +13,7 @@
13
13
  <%= "by #{post.last_updated_by}" if post.last_updated_by %>
14
14
  </span>
15
15
  <span class="links">
16
- <a target="_blank" href="<%= post_preview_path(post) %>" class="btn">Preview</a>
16
+ <a target="_blank" href="<%= post_preview_path(post) %>" class="btn"><%= @draft ? 'Preview' : 'View' %></a>
17
17
  <%= delete_link(url("/posts/#{post.path}")) %>
18
18
  </span>
19
19
  </li>
@@ -17,6 +17,7 @@
17
17
  <li><button id="show-meta" class="btn">Post meta</button></li>
18
18
 
19
19
  <% if @draft %>
20
+ <li><a target="_blank" href="<%= post_preview_path(@post) %>" class="btn">Preview</a></li>
20
21
  <li><input tabindex="4" type="submit" name="save" class="btn btn-success" value="Publish" /></li>
21
22
  <% else %>
22
23
  <li><input type="submit" name="save" class="btn btn-danger" value="Unpublish" /></li>
@@ -1,11 +1,13 @@
1
1
  <div class="dark fixed navbar">
2
2
  <div class="container">
3
3
  <ul class="menu menu-horizontal">
4
- <li><a target="_blank" href="/">View site</a></li>
4
+ <li class="artifact"><span>artifact</span></li>
5
5
  </ul>
6
6
 
7
7
  <ul class="right menu menu-horizontal">
8
- <form method="post" action="<%= url('/build') %>">
8
+ <li><a target="_blank" class="btn" href="/">View site</a></li>
9
+
10
+ <form method="post" class="inline" action="<%= url('/build') %>">
9
11
  <li><button class="btn btn-danger" type="submit">Rebuild!</button></li>
10
12
  </form>
11
13
  </ul>
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
+ - 1
7
8
  - 0
8
- - 6
9
- version: 0.0.6
9
+ version: 0.1.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - "Tom\xC3\xA1s Pollak"
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2015-06-07 00:00:00 -07:00
17
+ date: 2015-06-08 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency