tkh_authentication 0.9.13 → 0.9.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 73be025eb2585dfc51527daf1a488c31ee2b306f
4
- data.tar.gz: 951754083fb2990c88bf3e5800759502658ee695
3
+ metadata.gz: 92bf53cc857cf087f612c04ab01f4a88a84fedc5
4
+ data.tar.gz: ec91504c2d50a1eca00d2ab8873c4d602384eebb
5
5
  SHA512:
6
- metadata.gz: d97b07242342d535c55b5fa6b010fcdbaefb31e540a1c8433405710c9df92ffffc5678a031fc3ad4a754ccd337a2fe5e36f865972a3e18f02819e7ef1775a3c9
7
- data.tar.gz: 60b0fe28943d8fa9fff26e727b3cd1c1409c68f5bda781e6f99f5758c1094a15a381aa8da0eb642167a63f508f84306f290f5381df40cedfcf8aad620e94b406
6
+ metadata.gz: a58df08ec3a7539cbfc4139ffd502df3d4237156c6498a3230ae5d822dd25108ff0839a4e673847600967801b2019b92b554ba3c35f1801a3a9dcf9b15527aab
7
+ data.tar.gz: 6790ee3f637e68694703a432a00192215cb5c241563e7db5cd105a9887ebf9682cab3ec81e3a73a240ebda2a09550069d6f66b8f9e4f322cfe0bae127580f87c
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
 
4
4
 
5
+ ## 0.9.14
6
+
7
+ * Better integration with tkh_mailing_list gem.
8
+ * Added a profile element to the drop down menu of the login info for navbar partial.
9
+
10
+
5
11
  ## 0.9.13
6
12
 
7
13
  * Added user glyphicon next to user login info.
@@ -47,14 +47,14 @@ class UsersController < ApplicationController
47
47
  user = User.find(params[:id])
48
48
  user.admin = true
49
49
  user.save
50
- redirect_to users_path, notice: t('authentication.admin_enabled_confirmation')
50
+ redirect_to members_path, notice: t('authentication.admin_enabled_confirmation')
51
51
  end
52
52
 
53
53
  def remove_admin
54
54
  user = User.find(params[:id])
55
55
  user.admin = false
56
56
  user.save
57
- redirect_to users_path, notice: t('authentication.admin_disabled_confirmation')
57
+ redirect_to members_path, notice: t('authentication.admin_disabled_confirmation')
58
58
  end
59
59
 
60
60
  private
@@ -3,7 +3,8 @@
3
3
  <li class='dropdown'>
4
4
  <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-user"></span>&nbsp;&nbsp;<%= current_user.email %> <b class="caret"></b></a>
5
5
  <ul class="dropdown-menu">
6
- <%= content_tag :li, link_to(t('logout'), logout_path) %>
6
+ <%= content_tag :li, link_to("<span class=\"glyphicon glyphicon-user\"></span>&nbsp;profile".html_safe, profile_path) %>
7
+ <%= content_tag :li, link_to("<span class=\"glyphicon glyphicon-off\"></span>&nbsp;#{t('logout').downcase}".html_safe, logout_path) %>
7
8
  </ul>
8
9
  </li>
9
10
  </ul>
@@ -1,3 +1,3 @@
1
1
  module TkhAuthentication
2
- VERSION = "0.9.13"
2
+ VERSION = "0.9.14"
3
3
  end
@@ -4,6 +4,7 @@ require 'simple_form'
4
4
  require 'stringex'
5
5
  require 'tkh_authentication/tkh_authentication_action_controller_extension'
6
6
  require 'tkh_authentication/tkh_authentication_helper'
7
+ # require 'tkh_mailing_list' # debugging this
7
8
 
8
9
  module TkhAuthentication
9
10
  class Engine < ::Rails::Engine
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tkh_authentication
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.13
4
+ version: 0.9.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Swami Atma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-24 00:00:00.000000000 Z
11
+ date: 2014-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails