voluntary 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/CHANGELOG.md +5 -0
- data/MIT-LICENSE +1 -1
- data/README.rdoc +2 -2
- data/app/assets/javascripts/voluntary/application.js +0 -1
- data/app/assets/javascripts/voluntary/lib/competitive_list.js +484 -0
- data/app/assets/stylesheets/voluntary/application.css +1 -0
- data/app/assets/stylesheets/voluntary/base.css.sass +0 -3
- data/app/assets/stylesheets/voluntary/sticky_footer.css +45 -0
- data/app/controllers/voluntary/api/v1/base_controller.rb +7 -0
- data/app/models/concerns/likeable.rb +7 -1
- data/app/views/layouts/application.html.erb +62 -36
- data/config/locales/en.yml +1 -1
- data/config/locales/general/en.yml +7 -1
- data/lib/voluntary/version.rb +1 -1
- metadata +33 -264
- data/lib/generators/voluntary/install/templates/app/views/layouts/application.html.erb +0 -86
- data/lib/generators/voluntary/product_dummy/templates/app/views/layouts/application.html.erb +0 -86
@@ -1,86 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title><%= (yield(:title).blank? ? '' : yield(:title) + ' - ') + t('layout.title') %></title>
|
5
|
-
<meta charset='utf-8'>
|
6
|
-
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
|
7
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
8
|
-
<%= stylesheet_link_tag *voluntary_application_stylesheets, media: 'all' %>
|
9
|
-
<link href="//netdna.bootstrapcdn.com/font-awesome/3.1.1/css/font-awesome.css" rel="stylesheet"/>
|
10
|
-
</head>
|
11
|
-
<body>
|
12
|
-
<div id="bootstrap_modal" class="modal hide fade"></div>
|
13
|
-
|
14
|
-
<%= render 'layouts/shared/navigation' %>
|
15
|
-
|
16
|
-
<% if voluntary_application_repository_path.present? %>
|
17
|
-
<a href="https://github.com/<%= voluntary_application_repository_path %>"><img style="position: absolute; top: 41px; right: 0; border: 0; z-index: 100;" src="https://camo.githubusercontent.com/365986a132ccd6a44c23a9169022c0b5c890c387/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f7265645f6161303030302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png"></a>
|
18
|
-
<% end %>
|
19
|
-
|
20
|
-
<section id="dialog">
|
21
|
-
<img alt="Ajax-loader-small" class="hide " id="dialog_body_spinner" src="<%=image_path('voluntary/spinner.gif')%>"/>
|
22
|
-
<div id="dialog_body"/>
|
23
|
-
</section>
|
24
|
-
|
25
|
-
<div class="container-fluid">
|
26
|
-
<% unless flash.empty? %>
|
27
|
-
<div class="row-fluid">
|
28
|
-
<div class="span12">
|
29
|
-
<%= render 'layouts/shared/flash_messages' %>
|
30
|
-
</div>
|
31
|
-
</div>
|
32
|
-
<% end %>
|
33
|
-
<div class="row-fluid">
|
34
|
-
<% if sidenav(@sidenav_links_count).present? || content_for?(:search) || content_for?(:sidebar) %>
|
35
|
-
<div class="span9">
|
36
|
-
<% if content_for?(:breadcrumbs) %>
|
37
|
-
<div class="nav">
|
38
|
-
<%= yield :breadcrumbs %>
|
39
|
-
</div>
|
40
|
-
<% else %>
|
41
|
-
<%= breadcrumbs %>
|
42
|
-
<% end %>
|
43
|
-
|
44
|
-
<%= yield %>
|
45
|
-
</div>
|
46
|
-
<div class="span3">
|
47
|
-
<%= yield :search %>
|
48
|
-
|
49
|
-
<%= sidenav(@sidenav_links_count) %>
|
50
|
-
|
51
|
-
<%= yield :sidebar %>
|
52
|
-
</div>
|
53
|
-
<% else %>
|
54
|
-
<div class="span12">
|
55
|
-
<% if content_for?(:breadcrumbs) %>
|
56
|
-
<div class="nav">
|
57
|
-
<%= yield :breadcrumbs %>
|
58
|
-
</div>
|
59
|
-
<% else %>
|
60
|
-
<%= breadcrumbs %>
|
61
|
-
<% end %>
|
62
|
-
|
63
|
-
<%= yield %>
|
64
|
-
</div>
|
65
|
-
<% end %>
|
66
|
-
</div>
|
67
|
-
</div>
|
68
|
-
<div class="container-fluid">
|
69
|
-
<div class="row-fluid footer">
|
70
|
-
<div class="span12">
|
71
|
-
<%= footer_navigation %>
|
72
|
-
</div>
|
73
|
-
</div>
|
74
|
-
</div>
|
75
|
-
<%= javascript_include_tag *voluntary_application_javascripts %>
|
76
|
-
<%= yield :javascript_includes %>
|
77
|
-
<%= csrf_meta_tags %>
|
78
|
-
<%= javascript_tag do %>
|
79
|
-
<%= yield :top_javascript %>
|
80
|
-
|
81
|
-
$(function() {
|
82
|
-
<%= yield(:document_ready) %>
|
83
|
-
});
|
84
|
-
<% end %>
|
85
|
-
</body>
|
86
|
-
</html>
|
data/lib/generators/voluntary/product_dummy/templates/app/views/layouts/application.html.erb
DELETED
@@ -1,86 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title><%= (yield(:title).blank? ? '' : yield(:title) + ' - ') + t('layout.title') %></title>
|
5
|
-
<meta charset='utf-8'>
|
6
|
-
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
|
7
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
8
|
-
<%= stylesheet_link_tag *voluntary_application_stylesheets, media: 'all' %>
|
9
|
-
<link href="//netdna.bootstrapcdn.com/font-awesome/3.1.1/css/font-awesome.css" rel="stylesheet"/>
|
10
|
-
</head>
|
11
|
-
<body>
|
12
|
-
<div id="bootstrap_modal" class="modal hide fade"></div>
|
13
|
-
|
14
|
-
<%= render 'layouts/shared/navigation' %>
|
15
|
-
|
16
|
-
<% if voluntary_application_repository_path.present? %>
|
17
|
-
<a href="https://github.com/<%= voluntary_application_repository_path %>"><img style="position: absolute; top: 41px; right: 0; border: 0; z-index: 100;" src="https://camo.githubusercontent.com/365986a132ccd6a44c23a9169022c0b5c890c387/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f7265645f6161303030302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png"></a>
|
18
|
-
<% end %>
|
19
|
-
|
20
|
-
<section id="dialog">
|
21
|
-
<img alt="Ajax-loader-small" class="hide " id="dialog_body_spinner" src="<%=image_path('voluntary/spinner.gif')%>"/>
|
22
|
-
<div id="dialog_body"/>
|
23
|
-
</section>
|
24
|
-
|
25
|
-
<div class="container-fluid">
|
26
|
-
<% unless flash.empty? %>
|
27
|
-
<div class="row-fluid">
|
28
|
-
<div class="span12">
|
29
|
-
<%= render 'layouts/shared/flash_messages' %>
|
30
|
-
</div>
|
31
|
-
</div>
|
32
|
-
<% end %>
|
33
|
-
<div class="row-fluid">
|
34
|
-
<% if sidenav(@sidenav_links_count).present? || content_for?(:search) || content_for?(:sidebar) %>
|
35
|
-
<div class="span9">
|
36
|
-
<% if content_for?(:breadcrumbs) %>
|
37
|
-
<div class="nav">
|
38
|
-
<%= yield :breadcrumbs %>
|
39
|
-
</div>
|
40
|
-
<% else %>
|
41
|
-
<%= breadcrumbs %>
|
42
|
-
<% end %>
|
43
|
-
|
44
|
-
<%= yield %>
|
45
|
-
</div>
|
46
|
-
<div class="span3">
|
47
|
-
<%= yield :search %>
|
48
|
-
|
49
|
-
<%= sidenav(@sidenav_links_count) %>
|
50
|
-
|
51
|
-
<%= yield :sidebar %>
|
52
|
-
</div>
|
53
|
-
<% else %>
|
54
|
-
<div class="span12">
|
55
|
-
<% if content_for?(:breadcrumbs) %>
|
56
|
-
<div class="nav">
|
57
|
-
<%= yield :breadcrumbs %>
|
58
|
-
</div>
|
59
|
-
<% else %>
|
60
|
-
<%= breadcrumbs %>
|
61
|
-
<% end %>
|
62
|
-
|
63
|
-
<%= yield %>
|
64
|
-
</div>
|
65
|
-
<% end %>
|
66
|
-
</div>
|
67
|
-
</div>
|
68
|
-
<div class="container-fluid">
|
69
|
-
<div class="row-fluid footer">
|
70
|
-
<div class="span12">
|
71
|
-
<%= footer_navigation %>
|
72
|
-
</div>
|
73
|
-
</div>
|
74
|
-
</div>
|
75
|
-
<%= javascript_include_tag *voluntary_application_javascripts %>
|
76
|
-
<%= yield :javascript_includes %>
|
77
|
-
<%= csrf_meta_tags %>
|
78
|
-
<%= javascript_tag do %>
|
79
|
-
<%= yield :top_javascript %>
|
80
|
-
|
81
|
-
$(function() {
|
82
|
-
<%= yield(:document_ready) %>
|
83
|
-
});
|
84
|
-
<% end %>
|
85
|
-
</body>
|
86
|
-
</html>
|