forever_style_guide 3.1.5 → 3.2.0

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: 7b1adc4d5aeb7c20c849d861d3a043b3af2b8f72
4
- data.tar.gz: 21175bdea31f615adf97f00ca2838ad62c354ce0
3
+ metadata.gz: 1182afd1f951ccf60d8f6ac6a94960806102ee37
4
+ data.tar.gz: be516b2ee94b4bcc0b8eb3fa329b60478882dfb1
5
5
  SHA512:
6
- metadata.gz: 1f05cc41d3830f31e83c1ae670e6cc0e094f3e160c2f1ddedad67b3b49e510cf3db165aa9196909ea4dc8f8cf4932747e209ccef5f3e13620cbedf2aed1fd64f
7
- data.tar.gz: f63158d0b97749ba66b09c923932d2b6f42abdfd66220370562e7257dbcee97136473d040acfbeea27d5aa24d9451fa4334dd58319f0c960ba89bf8c8a7cc805
6
+ metadata.gz: 4c420e6e0beef8beec1e088926057d158b48a890ce649eae36652e578397d96d7f10c04f509864bb790cf7c9f07ce81effa496f2eaf9de503ce2071ff29f358b
7
+ data.tar.gz: 93cdfaee9d5ffa34ee744f89b3dbe3033c6e78d97d8d95726d13ae35d72f90e5042fda3c7d3479ead4f7d6048194d888c5bbb202944d862ed0c046fe080f7edc
@@ -21,10 +21,6 @@ module ForeverStyleGuide
21
21
  strip_subdomain("www", path, url)
22
22
  end
23
23
 
24
- def web_app_url(path = '/', url = nil)
25
- strip_subdomain("my", path, url)
26
- end
27
-
28
24
  def strip_subdomain(sub, path = '/', url = nil)
29
25
  url ||= request.url if respond_to?(:request)
30
26
  url = URI(url)
@@ -116,39 +112,44 @@ module ForeverStyleGuide
116
112
  end
117
113
 
118
114
  def web_app_admin_url
119
- web_app_url('/admin')
115
+ # this probably goes away
116
+ ('/app/admin')
120
117
  end
121
118
 
122
119
  def stop_impersonating_url
123
- web_app_url('/admin/users')
120
+ ('/impersonations')
124
121
  end
125
122
 
126
123
  # Web App Paths
127
124
  def library_url
128
- web_app_url('/#/inbox')
125
+ ('/app/library')
126
+ end
127
+
128
+ def albums_url
129
+ ('/app/albums')
129
130
  end
130
131
 
131
- def inbox_url
132
- web_app_url('/#/inbox?inbox_filter_type=unorganized-items')
132
+ def tags_url
133
+ ('/app/tags')
133
134
  end
134
135
 
135
136
  def projects_url
136
- web_app_url('/#/projects')
137
+ ('/app/library')
137
138
  end
138
139
 
139
140
  def people_url
140
- web_app_url('/#/people/family')
141
+ ('/app/users')
141
142
  end
142
143
 
143
- def app_home_url
144
- web_app_url('/#/')
144
+ def profile_url
145
+ ('/app/profile')
145
146
  end
146
147
 
147
- # User settings links (store and web app)
148
148
  def user_settings_url
149
- web_app_url('/#/settings')
149
+ ('/app/settings')
150
150
  end
151
151
 
152
+ # Combined Store/WWW Paths - now all available at www.forever.com
152
153
  def user_order_history_url
153
154
  www_url('/settings/orders')
154
155
  end
@@ -161,7 +162,6 @@ module ForeverStyleGuide
161
162
  www_url('/settings/my_ambassador')
162
163
  end
163
164
 
164
- # Combined Store/WWW Paths - now all available at www.forever.com
165
165
  def login_url
166
166
  www_url('/sign_in')
167
167
  end
@@ -427,10 +427,6 @@ module ForeverStyleGuide
427
427
  "https://forever1.zendesk.com/hc/en-us/articles/203834518-Using-the-People-Tab-Video-"
428
428
  end
429
429
 
430
- def zendesk_inbox_video_url
431
- "https://forever1.zendesk.com/hc/en-us/articles/223580988-Deeper-Dive-into-How-to-Use-your-Inbox-Video-"
432
- end
433
-
434
430
  def zendesk_albums_video_url
435
431
  "https://forever1.zendesk.com/hc/en-us/articles/226085547-Creating-an-Album-Uploading-Directly-to-an-Album-Video-"
436
432
  end
@@ -3,7 +3,7 @@
3
3
  <div class="color-white pull-left">
4
4
  <span class="hidden-xs">Logged in as <%= current_admin.name %>, but a</span><span class="visible-xs-inline">A</span>cting on behalf of <%= current_user.name %>
5
5
  </div>
6
- <%= link_to stop_impersonating_url, class: 'btn btn-sm btn-link btn-cancel_impersonation' do %>
6
+ <%= link_to stop_impersonating_url, class: 'btn btn-sm btn-link btn-cancel_impersonation', method: :delete do %>
7
7
  <i class="fa fa-times"></i> Stop Managing <span class="hidden-xs"><%= current_user.name %></span>
8
8
  <% end %>
9
9
  </div>
@@ -81,7 +81,7 @@
81
81
 
82
82
  <li class="dropdown-menu-account-item">
83
83
 
84
- <%= link_to current_admin ? stop_impersonating_url : log_out_url, class: 'dropdown-menu-nav-link dropdown-menu-nav-link-sm dropdown-menu-nav-link-no_margin', title: 'Log Out of Forever' do %>
84
+ <%= link_to current_admin ? stop_impersonating_url : log_out_url, class: 'dropdown-menu-nav-link dropdown-menu-nav-link-sm dropdown-menu-nav-link-no_margin', title: 'Log Out of Forever', method: current_admin ? :delete : :post do %>
85
85
  <i class='fa fa-share fa-fw'></i>Log Out
86
86
  <% end %>
87
87
  </li>
@@ -1,3 +1,3 @@
1
1
  <li>
2
- <%= link_to "Inspiration", blog_url, title: 'Get Inspired at the Forever Blog', target: "_blank" %>
2
+ <%= link_to "Blog", blog_url, title: 'Get Inspired at the Forever Blog', target: "_blank" %>
3
3
  </li>
@@ -14,27 +14,27 @@
14
14
  <% if defined?(current_user) && current_user.present? %>
15
15
 
16
16
  <li>
17
- <%= link_to library_url, class: 'dropdown-menu-nav-link', title: 'Organize Photos in Your Forever Library' do %>
18
- <i class='fa fa-th-large'></i>Library
19
- <% end %>
17
+ <%= link_to 'Library', library_url, class: 'dropdown-menu-nav-link', title: 'Organize Photos in Your Forever Library' %>
20
18
  </li>
21
19
 
22
20
  <li>
23
- <%= link_to projects_url, class: 'dropdown-menu-nav-link', title: 'Create Print Projects' do %>
24
- <i class='fa fa-paint-brush'></i>Projects
25
- <% end %>
21
+ <%= link_to 'Albums', albums_url, class: 'dropdown-menu-nav-link', title: 'Share Albums with Friends' %>
26
22
  </li>
27
23
 
28
24
  <li>
29
- <%= link_to people_url, class: 'dropdown-menu-nav-link', title: 'Share Photos with Friends and Family' do %>
30
- <i class='fa fa-users'></i>People
31
- <% end %>
25
+ <%= link_to 'Tags', tags_url, class: 'dropdown-menu-nav-link', title: 'Tag Photos of Friends and Places' %>
32
26
  </li>
33
27
 
34
28
  <li>
35
- <%= link_to app_home_url, class: 'dropdown-menu-nav-link', title: 'View Your Shared Photo Albums' do %>
36
- <i class='fa fa-home'></i>Home
37
- <% end %>
29
+ <%= link_to 'Print Projects', projects_url, class: 'dropdown-menu-nav-link', title: 'Create Print Projects' %>
30
+ </li>
31
+
32
+ <li>
33
+ <%= link_to 'Friends & Family', people_url, class: 'dropdown-menu-nav-link', title: 'Share Photos with Friends and Family' %>
34
+ </li>
35
+
36
+ <li>
37
+ <%= link_to 'Profile', profile_url, class: 'dropdown-menu-nav-link', title: 'View Your Profile' %>
38
38
  </li>
39
39
 
40
40
  <% else %>
@@ -111,12 +111,6 @@
111
111
  <div class='col-grid-float-3 l-padded-thin dropdown-menu-nav-extra_column'>
112
112
  <div class="hidden-grid-float-breakpoint dropdown-menu-nav-spacer"></div>
113
113
  <ul class="list-unstyled">
114
- <li>
115
- <%= link_to zendesk_inbox_video_url, class: 'dropdown-menu-nav-link', title: 'How to Use Your Inbox in Forever - Video Tutorial', target: '_blank' do %>
116
- <i class='fa fa-video-camera'></i>Inbox
117
- <% end %>
118
- </li>
119
-
120
114
  <li>
121
115
  <%= link_to zendesk_albums_video_url, class: 'dropdown-menu-nav-link', title: 'Organizing Photos with Albums in Forever - Video Tutorial', target: '_blank' do %>
122
116
  <i class='fa fa-video-camera'></i>Albums
@@ -1,3 +1,3 @@
1
1
  module ForeverStyleGuide
2
- VERSION = "3.1.5"
2
+ VERSION = "3.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forever_style_guide
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.5
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas McClay
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-19 00:00:00.000000000 Z
11
+ date: 2017-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails