i0n_rails3_generators 0.2.15 → 0.2.16

Sign up to get free protection for your applications and to get access to all the features.
data/config/version.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :version_major: 0
3
3
  :version_minor: 2
4
- :version_patch: 15
4
+ :version_patch: 16
@@ -46,6 +46,10 @@ end
46
46
  copy_file "app/views/shared/_error_messages.haml", "#{Rails.root}/app/views/shared/_error_messages.haml"
47
47
  end
48
48
 
49
+ def remove_default_layout
50
+ remove_file "app/views/layouts/application.html.erb"
51
+ end
52
+
49
53
  def generate_jquery
50
54
  generate("jquery:install")
51
55
  end
@@ -14,6 +14,16 @@
14
14
  %body
15
15
  .container
16
16
  %header
17
+ .login_container
18
+ - if !current_user.nil?
19
+ .login_name_container
20
+ Logged in as:
21
+ %span
22
+ = current_user.email
23
+ %span{:class => "login_links_container"}
24
+ - if !current_user.nil?
25
+ = link_to" Admin", users_url, :class =>"button_small"
26
+ = link_to "Logout", logout_path, :method => :delete, :class => "button_small"
17
27
  - if flash[:notice] != nil
18
28
  %p{:class => "flash_notice"}
19
29
  = flash[:notice]
@@ -25,3 +35,12 @@
25
35
  .container
26
36
  .container{:class => "sub_footer"}
27
37
  %p © #{Time.now.year}
38
+ = javascript_include_tag :defaults
39
+ :javascript
40
+ var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
41
+ document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
42
+ :javascript
43
+ try{
44
+ var pageTracker = _gat._getTracker("UA-");
45
+ pageTracker._trackPageview();
46
+ } catch(err) {}
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: i0n_rails3_generators
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.15
5
+ version: 0.2.16
6
6
  platform: ruby
7
7
  authors:
8
8
  - Ian Alexander Wood (i0n)