faalis 1.0.0.alpha0 → 1.0.0.alpha1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +44 -22
  3. data/Rakefile +1 -0
  4. data/app/assets/javascripts/faalis/angular-manifest.js +1 -0
  5. data/app/assets/javascripts/faalis/dashboard/app.js +4 -3
  6. data/app/assets/javascripts/faalis/dashboard/application.js.erb +0 -1
  7. data/app/assets/javascripts/faalis/dashboard/functions.js.erb +5 -7
  8. data/app/assets/javascripts/faalis/dashboard/init.js +1 -2
  9. data/app/assets/javascripts/faalis/dashboard/modules/fields/datetime.js +5 -3
  10. data/app/assets/javascripts/faalis/dashboard/modules/fields/image.js +46 -105
  11. data/app/assets/javascripts/faalis/dashboard/modules/services/upload_service.js +17 -0
  12. data/app/assets/javascripts/faalis/dashboard/variables.js.erb +1 -1
  13. data/app/assets/javascripts/faalis/{locale → locales}/en.json +0 -0
  14. data/app/assets/javascripts/faalis/{locale → locales}/fa.json +0 -0
  15. data/app/assets/javascripts/faalis/locales/translations.fa.js +4 -0
  16. data/app/assets/locale/templates.fa.pot +275 -0
  17. data/app/assets/locale/templates.pot +0 -8
  18. data/app/controllers/faalis/#api_controller.rb# +51 -0
  19. data/app/controllers/faalis/#dashboard_controller.rb# +65 -0
  20. data/app/controllers/faalis/application_controller.rb +9 -10
  21. data/app/controllers/faalis/dashboard_controller.rb +2 -2
  22. data/app/models/faalis/user.rb +11 -11
  23. data/app/models/faalis/user/auth_definitions.rb +2 -14
  24. data/app/models/faalis/user/mongoid_fields.rb +0 -1
  25. data/app/views/angularjs_templates/fields/datetime/datetime.html +7 -1
  26. data/app/views/angularjs_templates/fields/image/image.html +1 -1
  27. data/app/views/angularjs_templates/index.html +1 -6
  28. data/app/views/angularjs_templates/modules.html +1 -1
  29. data/app/views/devise/registrations/new.html.erb +5 -1
  30. data/app/views/devise/sessions/new.html.erb +17 -16
  31. data/app/views/devise/shared/_links.erb +8 -6
  32. data/app/views/layouts/faalis/application.html.erb +0 -4
  33. data/app/views/layouts/faalis/dashboard.html.erb +2 -2
  34. data/app/views/layouts/faalis/simple.html.erb +18 -20
  35. data/config/locales/fa/LC_MESSAGES/faalis.mo +0 -0
  36. data/config/locales/fa/faalis.edit.mo +0 -0
  37. data/config/locales/fa/faalis.edit.po +104 -0
  38. data/config/locales/fa/faalis.mo +0 -0
  39. data/config/locales/fa/faalis.po +29 -108
  40. data/{app/controllers/faalis/#1.sh# → config/locales/fa/faalis.po.time_stamp} +0 -0
  41. data/config/locales/faalis.pot +10 -88
  42. data/config/routes.rb +16 -3
  43. data/lib/faalis.rb +1 -0
  44. data/lib/faalis/discovery/permissions.rb +10 -3
  45. data/lib/faalis/engine.rb +21 -0
  46. data/lib/faalis/generators/concerns.rb +2 -0
  47. data/lib/faalis/generators/concerns/allow_query_on.rb +8 -12
  48. data/lib/faalis/generators/concerns/angular.rb +4 -5
  49. data/lib/faalis/generators/concerns/child.rb +31 -0
  50. data/lib/faalis/generators/concerns/fieldset.rb +2 -2
  51. data/lib/faalis/generators/concerns/globalize.rb +14 -0
  52. data/lib/faalis/generators/concerns/hstore.rb +19 -0
  53. data/lib/faalis/generators/concerns/model.rb +3 -3
  54. data/lib/faalis/generators/concerns/parent.rb +4 -6
  55. data/lib/faalis/generators/concerns/required.rb +2 -1
  56. data/lib/faalis/generators/concerns/resource_name.rb +1 -0
  57. data/lib/faalis/generators/concerns/tabs.rb +4 -7
  58. data/lib/faalis/generators/concerns/where.rb +1 -3
  59. data/lib/faalis/generators/dashboard_scaffold.rb +2 -0
  60. data/lib/faalis/generators/fields/#relation.rb# +61 -0
  61. data/lib/faalis/i18n.rb +6 -1
  62. data/lib/faalis/middlewares.rb +1 -0
  63. data/lib/faalis/middlewares/locale.rb +29 -0
  64. data/lib/faalis/route.rb +12 -19
  65. data/lib/faalis/version.rb +1 -1
  66. data/lib/generators/faalis/install_all_generator.rb +5 -3
  67. data/lib/generators/faalis/install_generator.rb +4 -0
  68. data/lib/generators/faalis/js/install_i18n_generator.rb +1 -1
  69. data/lib/generators/faalis/scaffold_generator.rb +72 -25
  70. data/lib/generators/faalis/templates/i18n/Gruntfile.js.erb +2 -2
  71. data/lib/generators/faalis/templates/i18n/fa.js +2 -2
  72. data/lib/generators/faalis/templates/js/list_view/details.html.erb +26 -3
  73. data/lib/generators/faalis/templates/views/create.json.jbuilder.erb +2 -1
  74. data/lib/generators/faalis/templates/views/index.json.jbuilder.erb +4 -2
  75. data/lib/generators/faalis/templates/views/show.json.jbuilder.erb +2 -1
  76. data/lib/generators/faalis/templates/views/update.json.jbuilder.erb +2 -1
  77. data/lib/tasks/faalis_tasks.rake +25 -27
  78. data/lib/tasks/grunt/Gruntfile.js +2 -2
  79. data/lib/tasks/sync.rake +3 -4
  80. metadata +43 -90
  81. data/app/assets/javascripts/faalis/dashboard/modules/list-view.js +0 -341
  82. data/app/assets/javascripts/faalis/dashboard/modules/modules.js +0 -75
  83. data/app/assets/javascripts/faalis/dashboard/modules/nav.js.erb +0 -78
  84. data/app/assets/stylesheets/faalis/base.css.scss +0 -334
  85. data/app/assets/stylesheets/faalis/dashboard/dashboard.css.scss +0 -246
  86. data/app/assets/stylesheets/faalis/dashboard/list_view.css.scss +0 -169
  87. data/app/assets/stylesheets/faalis/dashboard/ltr/application.css +0 -29
  88. data/app/assets/stylesheets/faalis/dashboard/ltr/base.css.scss.erb +0 -33
  89. data/app/assets/stylesheets/faalis/dashboard/ltr/buttons.css.scss.erb +0 -55
  90. data/app/assets/stylesheets/faalis/dashboard/ltr/direction.css.scss +0 -38
  91. data/app/assets/stylesheets/faalis/dashboard/ltr/foundation_and_overrides.css.scss +0 -1261
  92. data/app/assets/stylesheets/faalis/dashboard/ltr/time.css.scss +0 -58
  93. data/app/assets/stylesheets/faalis/dashboard/rtl/application.css +0 -27
  94. data/app/assets/stylesheets/faalis/dashboard/rtl/base.css.scss.erb +0 -35
  95. data/app/assets/stylesheets/faalis/dashboard/rtl/buttons.css.scss.erb +0 -45
  96. data/app/assets/stylesheets/faalis/dashboard/rtl/direction.css.scss +0 -37
  97. data/app/assets/stylesheets/faalis/dashboard/rtl/foundation_and_overrides.css.scss +0 -1264
  98. data/app/assets/stylesheets/faalis/dashboard/share/time.css.scss +0 -57
  99. data/app/assets/stylesheets/faalis/dashboard/sidebar.css.scss +0 -93
  100. data/app/assets/stylesheets/faalis/devise.css.scss +0 -34
  101. data/app/assets/stylesheets/faalis/groups.css +0 -4
  102. data/app/assets/stylesheets/faalis/home.css.scss +0 -14
  103. data/app/assets/stylesheets/faalis/ltr/application.css +0 -20
  104. data/app/assets/stylesheets/faalis/ltr/buttons.css.scss.erb +0 -45
  105. data/app/assets/stylesheets/faalis/ltr/foundation_and_overrides.scss +0 -1258
  106. data/app/assets/stylesheets/faalis/mixins.css.scss +0 -15
  107. data/app/assets/stylesheets/faalis/rtl/application.css +0 -20
  108. data/app/assets/stylesheets/faalis/rtl/buttons.css.scss.erb +0 -50
  109. data/app/assets/stylesheets/faalis/rtl/foundation_and_overrides.css.scss +0 -1264
  110. data/app/assets/stylesheets/faalis/users.css +0 -4
  111. data/app/assets/stylesheets/faalis/variables.css.scss +0 -102
  112. data/app/controllers/faalis/api/v1/workflows_controller.rb +0 -18
  113. data/app/views/angularjs_templates/list-view/index.html +0 -82
  114. data/app/views/faalis/api/v1/workflows/index.json.jbuilder +0 -5
  115. data/app/workflows/faalis/administration_workflow.rb +0 -7
  116. data/spec/dummy/log/development.log +0 -0
  117. data/spec/dummy/log/test.log +0 -15
  118. data/spec/dummy/tmp/ember-rails/ember-data.js +0 -10204
  119. data/spec/dummy/tmp/ember-rails/ember.js +0 -36991
  120. data/spec/factories/faalis_workflows.rb +0 -7
  121. data/spec/models/faalis/workflow_spec.rb +0 -7
@@ -29,14 +29,6 @@ msgstr ""
29
29
  msgid "Name :"
30
30
  msgstr ""
31
31
 
32
- #: app/views/angularjs_templates/auth/groups/new.html
33
- msgid "Workflows"
34
- msgstr ""
35
-
36
- #: app/views/angularjs_templates/auth/groups/new.html
37
- msgid "Choose any workflow which you want to allow user to have access to."
38
- msgstr ""
39
-
40
32
  #: app/views/angularjs_templates/auth/groups/new.html
41
33
  msgid "Advance Permissions"
42
34
  msgstr ""
@@ -0,0 +1,51 @@
1
+ # -----------------------------------------------------------------------------
2
+ # Faalis - Basic website skel engine
3
+ # Copyright (C) 2012-2013 Yellowen
4
+ #
5
+ # This program is free software; you can redistribute it and/or modify
6
+ # it under the terms of the GNU General Public License as published by
7
+ # the Free Software Foundation; either version 2 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # This program is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU General Public License along
16
+ # with this program; if not, write to the Free Software Foundation, Inc.,
17
+ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18
+ # -----------------------------------------------------------------------------
19
+ require_dependency "faalis/api_controller"
20
+
21
+
22
+ class Faalis::APIController < Faalis::ApplicationController
23
+ respond_to :json
24
+
25
+ before_filter :authenticate_user!
26
+
27
+ protect_from_forgery
28
+
29
+ after_filter :set_csrf_cookie_for_ng
30
+
31
+ def set_csrf_cookie_for_ng
32
+ cookies['XSRF-TOKEN'] = form_authenticity_token if protect_against_forgery?
33
+ end
34
+
35
+ rescue_from CanCan::AccessDenied do |exception|
36
+
37
+ render :status => 403, :json => {
38
+ :error => _("You don't have access to this page"),
39
+ :orig_msg => exception.message,
40
+ :action => exception.action,
41
+ }
42
+ end
43
+
44
+ protected
45
+
46
+ def verified_request?
47
+ super || form_authenticity_token == request.headers['X-XSRF-TOKEN']
48
+ end
49
+
50
+ :
51
+ end
@@ -0,0 +1,65 @@
1
+ require_dependency "faalis/application_controller"
2
+
3
+
4
+ module Faalis
5
+ class DashboardController < ApplicationController
6
+
7
+ include Faalis::Dashboard::Controller
8
+
9
+ layout "faalis/dashboard"
10
+ before_filter :authenticate_user!, :only => [:modules, :index]
11
+
12
+ respond_to :json, :html
13
+
14
+ def jstemplate
15
+ if user_signed_in?
16
+ render :template => "angularjs_templates/#{params[:path]}", :layout => nil
17
+ else
18
+ render :login_required_page
19
+ end
20
+ end
21
+
22
+ def index
23
+ if params.include? :signin
24
+ redirect_to dashboard_path
25
+ end
26
+ @jstemplates_path = "/templates"
27
+ end
28
+
29
+ def modules
30
+ dashboard_modules = []
31
+
32
+ Faalis::Engine.dashboard_modules.each do |module_name, attrs|
33
+ if not attrs.include? :title
34
+ attrs[:title] = _(module_name.to_s)
35
+ end
36
+
37
+ if not attrs.include? :resource
38
+ attrs[:resource] = module_name.to_s
39
+ end
40
+
41
+ # If class did not given by user in settings
42
+ # Faalis tries to guess the class name
43
+ if not attrs.include? :model
44
+ begin
45
+ klass = attrs[:resource].camelize.constantize
46
+
47
+ if klass.respond_to? :possible_permissions
48
+ attrs[:model] = attrs[:resource].camelize
49
+ else
50
+ attrs[:model] = ""
51
+ end
52
+
53
+ rescue NameError
54
+ attrs[:model] = ""
55
+ end
56
+ end
57
+
58
+ dashboard_modules << attrs
59
+ end
60
+ dashboard_modules = {:modules => dashboard_modules}
61
+ respond_with dashboard_modules
62
+ end
63
+ end
64
+
65
+ end
@@ -20,15 +20,14 @@ class Faalis::ApplicationController < ActionController::Base
20
20
  include FastGettext::Translation
21
21
  before_filter :set_locale
22
22
 
23
- def set_locale
24
- FastGettext.add_text_domain 'faalis', :path => "#{Faalis::Engine.root}/config/locales", :type => :po
25
- # All languages you want to allow
26
- FastGettext.default_available_locales = Faalis::Engine.locales
27
- FastGettext.default_text_domain = 'faalis'
28
-
29
- lang = request.env['lang'] || params[:locale] || session[:locale] || I18n.default_locale
30
- FastGettext.set_locale(lang.to_sym)
31
- session[:locale] = I18n.locale = lang
32
- end
23
+ def set_locale
24
+ FastGettext.add_text_domain 'faalis', :path => "#{Faalis::Engine.root}/config/locales", :type => :po
25
+ # All languages you want to allow
26
+ FastGettext.default_available_locales = Faalis::Engine.locales
27
+ FastGettext.default_text_domain = 'faalis'
33
28
 
29
+ lang = request.env['lang'] || params[:locale] || session[:locale] || I18n.default_locale
30
+ FastGettext.set_locale(lang.to_s)
31
+ session[:locale] = I18n.locale = :"#{lang}"
32
+ end
34
33
  end
@@ -6,7 +6,7 @@ module Faalis
6
6
 
7
7
  include Faalis::Dashboard::Controller
8
8
 
9
- layout "faalis/dashboard"
9
+ layout 'faalis/dashboard'
10
10
  before_filter :authenticate_user!, :only => [:modules, :index]
11
11
 
12
12
  respond_to :json, :html
@@ -23,7 +23,7 @@ module Faalis
23
23
  if params.include? :signin
24
24
  redirect_to dashboard_path
25
25
  end
26
- @jstemplates_path = "/templates"
26
+ @jstemplates_path = '/templates'
27
27
  end
28
28
 
29
29
  def modules
@@ -21,14 +21,6 @@ module Faalis
21
21
  # **User** model for **Faalis** platform
22
22
  class User < Faalis::ORM.proper_base_class
23
23
 
24
- # AuthDefinitions contains all the **Devise** related configurations.
25
- include Faalis::User::AuthDefinitions
26
- # Permission related methods for user
27
- include Faalis::User::Permission
28
-
29
- # Make this model authorizable
30
- include Faalis::Concerns::Authorizable
31
-
32
24
  # Define **User** fields if current ORM was Mongoid -----------------------
33
25
  if Faalis::ORM.mongoid?
34
26
  include Mongoid::Document
@@ -37,6 +29,14 @@ module Faalis
37
29
  # FIXME: Port mailboxer to work with mongoid
38
30
  end
39
31
 
32
+ # AuthDefinitions contains all the **Devise** related configurations.
33
+ include Faalis::User::AuthDefinitions
34
+ # Permission related methods for user
35
+ include Faalis::User::Permission
36
+
37
+ # Make this model authorizable
38
+ include Faalis::Concerns::Authorizable
39
+
40
40
  # Define **User** fields if current ORM was ActiveRecord-------------------
41
41
  if Faalis::ORM.active_record?
42
42
  # acts as messageable for mailboxer
@@ -46,9 +46,9 @@ module Faalis
46
46
  has_and_belongs_to_many :groups, class_name: 'Faalis::Group'
47
47
 
48
48
  # Validations
49
- validates :password, presence: true, length: {minimum: 5, maximum: 120}, on: :create
50
- validates :password, length: {minimum: 5, maximum: 120}, on: :update, allow_blank: true
51
- validates :email, presence: true, length: {minimum: 6}
49
+ validates :password, presence: true, length: { minimum: 5, maximum: 120 }, on: :create
50
+ validates :password, length: { minimum: 5, maximum: 120 }, on: :update, allow_blank: true
51
+ validates :email, presence: true, length: { minimum: 6 }
52
52
 
53
53
  devise *@@devise_options
54
54
 
@@ -7,22 +7,10 @@ module Faalis
7
7
  # Include default devise modules. Others available are:
8
8
  # :token_authenticatable, :confirmable,
9
9
  # :lockable, :timeoutable and :omniauthable
10
- @@devise_options = [:database_authenticatable,
11
- :registerable,
12
- :recoverable,
13
- :rememberable,
14
- :trackable,
15
- :lockable,
16
- :timeoutable,
17
- :validatable]
18
-
19
- if Rails.env.production?
20
- @@devise_options << :confirmable
21
- end
10
+ @@devise_options = ::Faalis::Engine.devise_options
22
11
 
23
12
  if Devise.omniauth_configs.any?
24
- @@devise_options << :omniauthable
25
- @@devise_options << {:omniauth_providers => Devise.omniauth_configs.keys}
13
+ devise :omniauthable, :omniauth_providers => Devise.omniauth_configs.keys
26
14
  end
27
15
  end
28
16
  base.extend ClassMethods
@@ -70,7 +70,6 @@ module Faalis
70
70
  index({ confirmation_token: 1 },
71
71
  { unique: true, background: true })
72
72
  end
73
-
74
73
  end
75
74
  end
76
75
  end
@@ -1,4 +1,10 @@
1
1
  <div>
2
- <datepicker disable-timepicker="timepicker" id="{{ element_id }}" ng-model="model" class="{{cssClasses}}" ng-required="required" name="{{ field }}" placeholder="{{ 'Click to pick a date' | translate }}" />
2
+ <!-- TODO: Find out why disable-timepicker and timepicker does not work together -->
3
+ <div ng-if="timepicker">
4
+ <quick-datepicker disable-timepicker="true" id="{{ element_id }}" ng-model="model" class="{{cssClasses}}" ng-required="required" name="{{ field }}" placeholder="{{ 'Click to pick a date' | translate }}" />
5
+ </div>
6
+ <div ng-if="!timepicker">
7
+ <quick-datepicker id="{{ element_id }}" ng-model="model" class="{{cssClasses}}" ng-required="required" name="{{ field }}" placeholder="{{ 'Click to pick a date' | translate }}" />
8
+ </div>
3
9
  <small id="{{ msg_element_id }}"></small>
4
10
  </div>
@@ -1 +1 @@
1
- <input type="file" />
1
+ <input multiple="" type="file" />
@@ -1,8 +1,3 @@
1
1
  <div class="row">
2
- <div class="small-2 columns widget whitewidget text-center">
3
- <h3>34 <i class="fa fa-user"></i></h3>
4
- </div>
5
- <div class="small-2 columns widget greenwidget">
6
- sdfsdf
7
- </div>
2
+
8
3
  </div>
@@ -13,5 +13,5 @@
13
13
 
14
14
  <div class="brand">
15
15
  <h1 translate><%= Faalis::Engine.site_title %></h1>
16
- <span translate>Some_Slug</span>
16
+ <span translate></span>
17
17
  </div>
@@ -1,3 +1,7 @@
1
+ <%= content_tag(:div, flash[:error], :id => "flash_error") if flash[:error] %>
2
+ <%= content_tag(:div, flash[:notice], :id => "flash_notice") if flash[:notice] %>
3
+ <%= content_tag(:div, flash[:alert], :id => "flash_alert") if flash[:alert] %>
4
+
1
5
  <div class="wrapper_signup">
2
6
  <div class="row">
3
7
  <div class="layout_signup">
@@ -56,7 +60,7 @@
56
60
  <% end -%>
57
61
  </div>
58
62
 
59
- <% if resource.password_required? %>
63
+ <% if resource.send('password_required?'.to_sym) %>
60
64
  <div class="field">
61
65
  <label><%=_("Password") %></label>
62
66
  <%= f.password_field :password, :class => "password input" %>
@@ -1,6 +1,11 @@
1
+ <%= content_tag(:div, flash[:error], :id => "flash_error") if flash[:error] %>
2
+ <%= content_tag(:div, flash[:notice], :id => "flash_notice") if flash[:notice] %>
3
+ <%= content_tag(:div, flash[:alert], :id => "flash_alert") if flash[:alert] %>
4
+
5
+
1
6
  <div class="row single-form">
2
7
 
3
- <div class="small-6 columns">
8
+ <div class="large-offset-3 small-6 columns">
4
9
  <%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
5
10
  <fieldset>
6
11
  <legend><%= _("Sign In") %></legend>
@@ -28,21 +33,9 @@
28
33
  <div class="right submit">
29
34
  <%= f.submit _("Sign in"), :class => "button"%><br><br>
30
35
  </div>
31
- <%= render "devise/shared/links" %>
32
-
33
- </fieldset>
34
-
35
- <% end %>
36
- </div>
37
-
38
36
 
39
- <div class="small-6 columns">
40
- <div class="row">
41
- <fieldset>
42
-
43
- <legend><%= _("Login using") %>:</legend>
44
-
45
- <div class="text-left">
37
+ <br>
38
+ <div class="text-left left">
46
39
  <a href="/auth/google_oauth2/" class="pull_right">
47
40
  <i class="fa-google-plus-square fa fa-3x"></i>
48
41
  </a>
@@ -55,8 +48,16 @@
55
48
  <i class="fa-twitter-square fa fa-3x"></i>
56
49
  </a>
57
50
  </div>
51
+ <br>
52
+ <br>
53
+ <div class="text-center">
54
+ <%= render "devise/shared/links" %>
55
+ </div>
58
56
  </fieldset>
59
57
 
60
- </div>
58
+ <% end %>
59
+
61
60
  </div>
61
+
62
+
62
63
  </div>
@@ -1,25 +1,27 @@
1
+ <p>
1
2
  <%- if controller_name != 'sessions' %>
2
- <%= link_to "Sign in", new_session_path(resource_name) %><br />
3
+ <%= link_to "Sign in", new_session_path(resource_name) %> <br>
3
4
  <% end -%>
4
5
 
5
6
  <%- if devise_mapping.registerable? && controller_name != 'registrations' %>
6
- <%= link_to "Sign up", new_registration_path(resource_name) %><br />
7
+ <%= link_to "Sign up", new_registration_path(resource_name) %> <br>
7
8
  <% end -%>
8
9
 
9
10
  <%- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %>
10
- <%= link_to "Forgot your password?", new_password_path(resource_name) %><br />
11
+ <%= link_to "Forgot your password?", new_password_path(resource_name) %> <br>
11
12
  <% end -%>
12
13
 
13
14
  <%- if devise_mapping.confirmable? && controller_name != 'confirmations' %>
14
- <%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) %><br />
15
+ <%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) %> <br>
15
16
  <% end -%>
16
17
 
17
18
  <%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %>
18
- <%= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) %><br />
19
+ <%= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) %> <br>
19
20
  <% end -%>
20
21
 
21
22
  <%- if devise_mapping.omniauthable? %>
22
23
  <%- resource_class.omniauth_providers.each do |provider| %>
23
- <%= link_to "Sign in with #{provider.to_s.titleize}", faalis.user_omniauth_authorize_path(provider) %><br />
24
+ <%= link_to "Sign in with #{provider.to_s.titleize}", faalis.user_omniauth_authorize_path(provider) %>
24
25
  <% end -%>
25
26
  <% end -%>
27
+ </p>
@@ -68,10 +68,6 @@
68
68
  </div>
69
69
  <div class="large-6 columns">
70
70
  <ul class="inline-list right">
71
- <li><a href="#">Link 1</a></li>
72
- <li><a href="#">Link 2</a></li>
73
- <li><a href="#">Link 3</a></li>
74
- <li><a href="#">Link 4</a></li>
75
71
  </ul>
76
72
  </div>
77
73
  </div>
@@ -10,12 +10,12 @@
10
10
  <body data-current-user="<%= current_user.to_json %>">
11
11
 
12
12
  <%= yield %>
13
-
14
13
  <%= javascript_include_tag Faalis::Engine.dashboard_js_manifest %>
15
14
  <div id="auth" style="display: none;">
16
15
  <p class="notice"><%= notice %></p>
17
16
  <p class="alert"><%= alert %></p>
18
17
  </div>
19
- <%= javascript_include_tag "locale/#{::I18n.locale}" %>
18
+ <%= javascript_include_tag "locales/#{::I18n.locale}" %>
19
+
20
20
  </body>
21
21
  </html>
@@ -4,33 +4,31 @@
4
4
  <title><%= Faalis::Engine.site_title %></title>
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <%= stylesheet_link_tag Faalis::I18n.direction(I18n.locale) + "/application", media: "all" %>
7
+ <%= stylesheet_link_tag "dashboard/" + Faalis::I18n.direction(I18n.locale) + "/application", media: "all" %>
7
8
  <%= javascript_include_tag :modernizr %>
8
9
  <%= csrf_meta_tags %>
9
10
  </head>
10
11
  <body>
11
12
 
12
- <%= yield %>
13
+ <%= yield %>
13
14
 
14
- <!-- Footer -->
15
-
16
- <hr/>
17
- <footer class="plain">
18
- <div class="row">
19
- <div class="large-6 columns">
20
- <p>&copy; Copyright no one at all. Go to town.</p>
21
- </div>
22
- <div class="large-6 columns">
23
- <ul class="inline-list right">
24
- <li><a href="#">Link 1</a></li>
25
- <li><a href="#">Link 2</a></li>
26
- <li><a href="#">Link 3</a></li>
27
- <li><a href="#">Link 4</a></li>
28
- </ul>
29
- </div>
30
- </div>
31
- </footer>
15
+ <!-- Footer -->
16
+ <hr/>
17
+ <footer class="plain">
18
+ <div class="row">
19
+ <div class="large-6 columns">
20
+ <p>&copy; Copyright no one at all. Go to town.</p>
21
+ </div>
22
+ <div class="large-6 columns">
23
+ <ul class="inline-list right">
24
+ <li><a href="#">Link 1</a></li>
25
+ <li><a href="#">Link 2</a></li>
26
+ <li><a href="#">Link 3</a></li>
27
+ <li><a href="#">Link 4</a></li>
28
+ </ul>
29
+ </div>
32
30
  </div>
33
- </div>
31
+ </footer>
34
32
 
35
33
  <%= javascript_include_tag "faalis/application" %>
36
34
  <%= javascript_include_tag "locale/#{::I18n.locale}" %>