padma-assets 0.3.26 → 0.3.27

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
  SHA256:
3
- metadata.gz: 361665bc6e2b5c1488fd2d3f52c8fc57e00c0bd59f75f7328c8a3bb57bc7a2c8
4
- data.tar.gz: ced6afa30a34b2e9fbe906356f35d037a9a74152d07985395e65fa164552156b
3
+ metadata.gz: c9294bfe13de94a0293d69f6e6254eb20d2de98b47b9c90e82f4ddd1b3e81460
4
+ data.tar.gz: 8da9c3487a95600ba6e25373e9250a5806f9b7e505e2b95eddb130e2ddb842f4
5
5
  SHA512:
6
- metadata.gz: 790c711392a9c2acb99c9ea6338a7c1959a1a19a99da74ae3339e7244f22d414ae62c743c6fe42fbd1c13b9ae6570b6541c509ec8c749917f08b13ce5e6232ab
7
- data.tar.gz: c324afbbb2f02e4bf0b23422174839a1bcb8209224ecee8402b6ba15ca94ab64c7c4e94f8b6bcec6e57a651f42aaaa47b738d9745a1d34e6263ab014634d9fe3
6
+ metadata.gz: e05eaa5e1b9cf0e9b3010936dfd0029dde4d819b01fd41e634d009becb6e743d0a3ef54db8a74448cf3e690445a4bdec0c46ea991422cf1fd475a991e3e34770
7
+ data.tar.gz: a3f12090a19f933bb514b1d120e59c9587875540b0990e8146d8c1464042fb905ffc4ab816aac24213513401f37065d7ea1bf2af5e976873b7202c33cf84248d
@@ -1,16 +1,17 @@
1
1
  <% curacc = current_user.current_account %>
2
+ <% vanity_name = curacc.try(:vanity_name) || curacc.try(:padma).try(:vanity_name) || curacc.name %>
2
3
  <% if curacc && !curacc.name.blank? -%>
3
4
  <li>
4
5
  <%= link_to t("header-menu.stats.pdg_report"),
5
- "#{APP_CONFIG['crm-url']}/statistics/accounts/#{curacc.padma.vanity_name}/reports/pedagogic/#{Date.today.year}/#{Date.today.month}" %>
6
+ "#{APP_CONFIG['crm-url']}/statistics/accounts/#{vanity_name}/reports/pedagogic/#{Date.today.year}/#{Date.today.month}" %>
6
7
  </li>
7
8
  <li>
8
9
  <%= link_to t("header-menu.stats.overmind"),
9
- "#{APP_CONFIG['crm-url']}/statistics/accounts/#{curacc.padma.vanity_name}" %>
10
+ "#{APP_CONFIG['crm-url']}/statistics/accounts/#{vanity_name}" %>
10
11
  </li>
11
12
  <li>
12
13
  <%= link_to t("header-menu.stats.teacher_ranking"),
13
- "#{APP_CONFIG['crm-url']}/statistics/accounts/#{curacc.padma.vanity_name}/user_rankings" %>
14
+ "#{APP_CONFIG['crm-url']}/statistics/accounts/#{vanity_name}/user_rankings" %>
14
15
  </li>
15
16
  <% end -%>
16
17
  <li>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: padma-assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.26
4
+ version: 0.3.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dwayne Macgowan