stiki 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,4 +14,14 @@
14
14
  }
15
15
  }
16
16
  }
17
+
18
+
19
+ .title {
20
+ a {
21
+ .icon-chevron-left {
22
+ position: relative;
23
+ top: 9px;
24
+ }
25
+ }
26
+ }
17
27
  }
@@ -36,15 +36,6 @@
36
36
  color: green;
37
37
  }
38
38
 
39
- .title {
40
- a {
41
- .icon-chevron-left {
42
- position: relative;
43
- top: 9px;
44
- }
45
- }
46
- }
47
-
48
39
  .author {
49
40
 
50
41
  .badge {
@@ -2,7 +2,8 @@
2
2
  <div class="page">
3
3
  <div class="row-fluid">
4
4
  <div class="span10 well">
5
- <div class="span9">
5
+ <div class="span9 title">
6
+ <%= link_to '<i class="icon-chevron-left"></i>'.html_safe, stiki_routes.spaces_path(), :style => "float:left" %>
6
7
  <h1><%= @space.name %> Pages</h1>
7
8
  </div>
8
9
  <div class="span3">
@@ -84,14 +84,12 @@
84
84
  </div>
85
85
  <div class="wiki-cheatsheet">
86
86
  <h4><a data-toggle="modal" href="#cheatsheet">Wiki Syntax</a></h4>
87
- <div id="cheatsheet" class="<%= 'modal' if Stiki.javascript_enabled %>" style="<%= 'display:none' if Stiki.javascript_enabled %>">
88
- <%- if Stiki.javascript_enabled %>
87
+ <div id="cheatsheet" class="modal" style="display:none">
89
88
  <div class="modal-header">
90
89
  <button type="button" class="close" data-dismiss="modal">×</button>
91
90
  <h3>Markdown Wiki Syntax</h3>
92
91
  </div>
93
92
  <div class="modal-body">
94
- <% end -%>
95
93
  <pre>
96
94
  # Header 1
97
95
  ## Header 2
@@ -124,14 +122,11 @@ For an image:
124
122
  ### Horizontal rules
125
123
 
126
124
  </pre>
127
- <%- if Stiki.javascript_enabled %>
128
125
  </div>
129
126
  <div class="modal-footer">
130
127
  <a href="#" class="btn" data-dismiss="modal">Close</a>
131
128
  </div>
132
- <% end -%>
133
129
  </div>
134
- <% if Stiki.javascript_enabled %>
135
130
  <script type="text/javascript">
136
131
 
137
132
  $('.cheatsheet').modal();
@@ -141,7 +136,6 @@ For an image:
141
136
  });
142
137
  });
143
138
  </script>
144
- <% end %>
145
139
  </div>
146
140
  <div>
147
141
  </div>
@@ -21,14 +21,12 @@
21
21
  </div>
22
22
  <% end -%>
23
23
  <%- if has_access( :create, Stiki::Space ) %>
24
- <%- if javascript_enabled %>
25
24
  <div class="row-fluid create-space">
26
25
  <div class="span8 well">
27
26
  <a href="#" class="btn btn-success btn-large create-space-trigger">Create New Space</a>
28
27
  </div>
29
28
  </div>
30
- <% end -%>
31
- <div class="row-fluid create-space" style="<%= 'display:none' if javascript_enabled %>">
29
+ <div class="row-fluid create-space" style="display:none">
32
30
  <div class="span8">
33
31
  <div class="row-fluid">
34
32
  <%= form_tag( stiki_routes.spaces_path, :class => 'form-horizontal' ) do |f| %>
@@ -49,7 +47,6 @@
49
47
  </div>
50
48
  </div>
51
49
  </div>
52
- <%- if javascript_enabled %>
53
50
  <script type="text/javascript">
54
51
  jQuery(function() {
55
52
  jQuery('.create-space-trigger').click( function() {
@@ -57,6 +54,5 @@
57
54
  });
58
55
  });
59
56
  </script>
60
- <% end -%>
61
57
  <% end -%>
62
58
  </div>
@@ -12,7 +12,6 @@ module Stiki
12
12
  mattr_accessor :authenticate_spaces
13
13
  mattr_accessor :auth_mapping
14
14
  mattr_accessor :authorize_by
15
- mattr_accessor :javascript_enabled
16
15
 
17
16
  def self.reload
18
17
  config( &@@config_blk ) if @@config_blk
@@ -21,8 +20,6 @@ module Stiki
21
20
  def self.config(&blk)
22
21
  @@config_blk = blk
23
22
 
24
- @@javascript_enabled = true
25
-
26
23
  yield self
27
24
 
28
25
  if user_class
@@ -1,3 +1,3 @@
1
1
  module Stiki
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stiki
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-08 00:00:00.000000000 Z
12
+ date: 2012-08-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -264,7 +264,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
264
264
  version: '0'
265
265
  segments:
266
266
  - 0
267
- hash: -2092737024573445962
267
+ hash: -2519725823375416107
268
268
  required_rubygems_version: !ruby/object:Gem::Requirement
269
269
  none: false
270
270
  requirements:
@@ -273,7 +273,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
273
273
  version: '0'
274
274
  segments:
275
275
  - 0
276
- hash: -2092737024573445962
276
+ hash: -2519725823375416107
277
277
  requirements: []
278
278
  rubyforge_project:
279
279
  rubygems_version: 1.8.24