volt-user_templates 0.1.4 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 289532908de7048deb13bffcac12299c0bf99479
4
- data.tar.gz: ca52bc7249d7df9ab3848255612c449069a39921
3
+ metadata.gz: 986a73cd82c480498ebea0bf4d362f184e798ad4
4
+ data.tar.gz: 178c9fcce75917cb57f9ba58781bc02968b06965
5
5
  SHA512:
6
- metadata.gz: 10409854490c55ead8da61627eb579af7546096c863db1d49e6b95939cd7779399848f90b40cfddf15c65ab90e06c44cd841f841757da831d76c5a01c97f4170
7
- data.tar.gz: c7449744717c87e75bf1f552dc37ea287ff075a41df4de3673a0346fcb71b90dae04d52d5f4b5c75a66647987593465632dfd603fccd6b255acceefbba71150e
6
+ metadata.gz: 33cbc6b2ba054ae03813256a385f63248a10168ff329a75cd376e1df590666a4a1eed87558e1dbeb583172aa72f6993c843c252542bfaef312666b1465781285
7
+ data.tar.gz: 760d18fa6361dd3e29b224df7fb4348c233e778ecdaca7545878ef09fb113b2bcceb9d5ab222a74df991dc68e47679d4a214eb48f2757c1503890df3926fc968
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.1.6
@@ -5,5 +5,9 @@ module UserTemplates
5
5
  user._name || user._email || user._username
6
6
  end
7
7
  end
8
+
9
+ def is_active?
10
+ url.path.split('/')[1] == 'login'
11
+ end
8
12
  end
9
13
  end
@@ -17,7 +17,7 @@ module UserTemplates
17
17
  # On a successful signup, then login
18
18
  Volt.login(login, password).then do
19
19
  # Redirect to post signup url
20
- go post_signup_url
20
+ redirect_to post_signup_url
21
21
  end.fail do |errors|
22
22
  # Show the error (probably only the server goes down)
23
23
  flash._errors << errors.to_s
@@ -16,7 +16,7 @@
16
16
  </ul>
17
17
  </li>
18
18
  {{ else }}
19
- <li>
19
+ <li class="{{ if is_active? }}active{{ end }}">
20
20
  <a href="/login">
21
21
  <span class="glyphicon glyphicon-user"></span>
22
22
  Login
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: volt-user_templates
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Stout
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-07 00:00:00.000000000 Z
11
+ date: 2015-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: volt-fields