From 4067477cd467ad1b4bdf715d472578681e76c6c1 Mon Sep 17 00:00:00 2001 From: Will Bradley Date: Mon, 26 Aug 2013 22:05:53 -0700 Subject: [PATCH] Updating icons, fixing user cert nil error --- app/models/user_certification.rb | 4 ++++ app/views/user_certifications/index.html.erb | 4 ++-- public/copper-coin.png | Bin 0 -> 1317 bytes public/favicon.ico | Bin 0 -> 661 bytes public/gold-coin.png | Bin 0 -> 1272 bytes public/silver-coin.png | Bin 0 -> 1210 bytes 6 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 public/copper-coin.png create mode 100644 public/gold-coin.png create mode 100644 public/silver-coin.png diff --git a/app/models/user_certification.rb b/app/models/user_certification.rb index e29b17c..649c48e 100644 --- a/app/models/user_certification.rb +++ b/app/models/user_certification.rb @@ -5,4 +5,8 @@ class UserCertification < ActiveRecord::Base belongs_to :user belongs_to :certification + + def user_name + self.user.name unless self.user.blank? + end end diff --git a/app/views/user_certifications/index.html.erb b/app/views/user_certifications/index.html.erb index 391f4fc..9996ffe 100644 --- a/app/views/user_certifications/index.html.erb +++ b/app/views/user_certifications/index.html.erb @@ -5,9 +5,9 @@ <% @grouped_user_certs.sort.each do |cert, user_certifications| %>
<%= cert.name %>
- <% user_certifications.sort{|a,b| a.user.name <=> b.user.name}.each do |user_certification| %> + <% user_certifications.sort{|a,b| a.user_name <=> b.user_name}.each do |user_certification| %>
- <%= link_to user_certification.user.name, user_certification %> + <%= link_to user_certification.user_name, user_certification %>
<% end %>
diff --git a/public/copper-coin.png b/public/copper-coin.png new file mode 100644 index 0000000000000000000000000000000000000000..809bbbb0a7a45f9c7b754fd8bfb4fcab48c145ad GIT binary patch literal 1317 zcmV+=1={+FP)|KT+qT<{9D`uI3X!3dZcQLl|=GlbR}Wxon*EtmhYP19 zU@r#cAm@8JXOxNotVqk)^b+*q?l1t(1Mg9=Llk$rfTei}i?SaCxt}{_SaqvNDki-! z5HS4&ed@zn&I7-pfSJ(i_5j#vX{}X7-%k@o1ma=Rh{0?zGuA+Fqze)>tRM$&(SuWT zVKb7vwL1!|1xWz9AICXs_Fg0n2h){Vuy4^qGflXVCzl1^^>rt%|#Q zyv=Rgv4ByPH3TxitHE<5oF>0o8HH1DGsUU;)PbV!!vZ83cBR+tW!3SnBuZAOn)k5Y zdzDp}TPoxg41@H80D|qd6c&s770^4AX#2Ylq|nG)I}9=?2Ox{v^7CI?_u{zsxD|#6 zDtP(&8JgQ6$QZC?Kmz5FYDN&XqP(@t@JC9J+Idpl{`iiBwboiJZmh1s7?V@bH4zX4 zNGyyo&|0HZ3Q%?{0Dz758akV;Twt&kQ;k^&!8fq5z!CsdlH4MbgyH69?p+zs0E1#b zyKFln;Q?NRD_H&e**Yq$3wU`u5>H byaVJvrrzQCXBMWj00000NkvXXu0mjfp=4DJ literal 0 HcmV?d00001 diff --git a/public/favicon.ico b/public/favicon.ico index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..f3f28f635730685f2fd650b45ed227d866b7a45e 100644 GIT binary patch literal 661 zcmV;G0&4wPx#24YJ`L;(2!n*a<%my&4!000SaNLh0L01ejw01ejxLMWSf00007bV*G`2iyo6 z2{SA4`Yka400I?BL_t(I%bk-!Y>QzS$A9nlwf)-lvo1wxn4-b5M35!TC>G%$IP}0A zwy={(c32RJ*ogxXM~SG$iHo>lmrW)SVTltF*+>nsh?S|9eqFWSU7LfY#Zz zQuQ8+d)f`R);gZCgTQJa0gM2T01q$>psGmIONT-Y-#FsccCY`%o3n&9rwWy9L56_m zKrhe-z}5g3 znJNhI_;rQ&Ig7hb%M^dq6I{AiVq!|Xzz5(yP_D`N)sj3wsSN2!o33P$^rT%!F!jB5 zd6zAUTZpK%5=(< zGYOCQ4J8*l4ar?L<-!3&yl%u%;2RM8y}Jl7*y!U}_ZC;lO3skn?(<1(l`i2XC8k%| zz!%^IaL|#Hs*z4Q&hi6Yp#`e6y+w~aduO`^d5N) z|EjsvlB{AmI=kGLG?GMvjzd#Tk0RhbsGfV*S_i_GAh4dWzfByIX39dB{<|b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