From 93b6d0a5efd0dcf54deea903787dd82ab7e06cd0 Mon Sep 17 00:00:00 2001 From: Nick Recobra Date: Fri, 1 Apr 2011 13:08:54 +0400 Subject: [PATCH] Icons for issue trackers. --- app/views/errs/show.html.haml | 6 +++--- public/images/lighthouseapp_create.png | Bin 0 -> 1605 bytes public/images/lighthousehouseapp_goto.png | Bin 0 -> 1651 bytes public/images/redmine_create.png | Bin 0 -> 1510 bytes public/images/redmine_goto.png | Bin 0 -> 1555 bytes public/stylesheets/application.css | 16 ++++++++++++++++ 6 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 public/images/lighthouseapp_create.png create mode 100644 public/images/lighthousehouseapp_goto.png create mode 100644 public/images/redmine_create.png create mode 100644 public/images/redmine_goto.png diff --git a/app/views/errs/show.html.haml b/app/views/errs/show.html.haml index 78223109d..ade5c90cd 100644 --- a/app/views/errs/show.html.haml +++ b/app/views/errs/show.html.haml @@ -12,10 +12,10 @@ - content_for :action_bar do - if @err.app.issue_tracker - if @err.issue_link.blank? - %span= link_to 'create issue', create_issue_app_err_path(@app, @err), :method => :post, :class => 'create-issue' + %span= link_to 'create issue', create_issue_app_err_path(@app, @err), :method => :post, :class => "#{@app.issue_tracker.issue_tracker_type}_create create-issue" - else - %span= link_to 'go to issue', @err.issue_link, :class => 'goto-issue' - = link_to 'clear issue', clear_issue_app_err_path(@app, @err), :method => :delete, :confirm => "Clear err issues?", :class => 'clear-issue' + %span= link_to 'go to issue', @err.issue_link, :class => "#{@app.issue_tracker.issue_tracker_type}_create goto-issue" + = link_to 'clear issue', clear_issue_app_err_path(@app, @err), :method => :delete, :confirm => "Clear err issues?", :class => "clear-issue" - if @err.unresolved? %span= link_to 'resolve', resolve_app_err_path(@app, @err), :method => :put, :confirm => err_confirm, :class => 'resolve' diff --git a/public/images/lighthouseapp_create.png b/public/images/lighthouseapp_create.png new file mode 100644 index 0000000000000000000000000000000000000000..a28b9a0c334f8cd53f4b25fce3540b270ad35b43 GIT binary patch literal 1605 zcmV-L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(H&oOcl=k)z-S}R&5!VAL zSPfd7+|^D}r{{^KSvP1*4wUa5#k2JOcrt_S$8U)5_tXAry9`O1)yKqCK0hnEaYaSN zVY+oJ5C|ZZN(sT|);I-e-YTEE^3Y1MK;btfh1TscL&0`iaG@aCoo#Md<(SaHzU9lTT)FaVQZc?zKdu`b9PAB; z!>-E8N>Si#HXA~+87tgomH+IWHt~$^oG+7!Ob!#F1nfCUj6zI2H8n-u%r#wCSJy@& zR~PEXmr0#m9aGsP0 z0jgM1O-;>#Lehms9~}{XGB7ak7zKr`yu4i8oSO&NTV>#Lyg6%u$i9R)9Q#x8DUX%6@_D{xJ9pUw0F!;jo@NhZZ%EJC;aF6ApKi6DDx=^DRpaC&Xgg#20 zgY>)e=9?~huBO#M*iC+G8y_EckO^%>rX{oT_zR20lA=S%G+#+xuQx(&=%vr>(_jD7 zKwq%Dge`;(1Q$V>CPoR|p1KL&7N*SqMf|_6zXcco^BokukuskJ00000NkvXXu0mjf DB$5Ys literal 0 HcmV?d00001 diff --git a/public/images/lighthousehouseapp_goto.png b/public/images/lighthousehouseapp_goto.png new file mode 100644 index 0000000000000000000000000000000000000000..d7e468b94b55cfcd097fbff91a694f156ff34992 GIT binary patch literal 1651 zcmV-(28{WMP)z^QCn--ywKc=vY{q{h!?U*6|^e((ESUr8($!{ZoIJfJaVM4J1m&=8bkr96Xl-9pX8;H!9xV^pINRQ(>oo;1rZZ3#ifJskWyoDnz7ZBcHnzgAr02z|sw&q*iHTG#kx0&_r>B=QsZyyFCykKU zp_Bb+ZTSUh_d0>`bup<7{(@SpuBpb`>xz=dtyU|Ow-ZM#kp~|Z)rZKB2~s|(BOt+! zqy6~3=_{xwkcyp0BhU@B;M5O?@m|wSID=BLhGQT*I~!?fX;mcl$v>u3TU%Q>1| z&3j`wijPj&VfDozPt(F|E`-65o>-$)Do|XsfJ_(0pRNG*{pQ4gD<-VO8_&$lq~bRr*qP9_$M7*>A_2iu+Sg`&`A7-2V+VejtcQwC$@-b+}JnFDVyibLmJ*j;0Q zUM>^l6r578*V{m1wJ9fVZEfWpRTvD0MD#XZb_>#pBjUadU)Ps#-Z(vNsxbN2S3Dx^ zSQlpnMg1z`cp`x%|qsstCQwGUat`{6UXJDP(mN; zjz*(fQiwyL&>Z#$3sE|u-xf?ZpUa6ArL!T^&4s#j8*-PvkTkz$`8$+_^rse_`xnQ|D_83wk&P{lQ96Zv!{ZW5ljQBbNZgu&oQTy^ zrV|UqA(u*$lw@S(Qfld-lqo2}LWqod2qTctyHc*gA2i1@lSf=%Jnd6XOwkvn9Vz01 z`ZQ@`$2>IY1{^BAA2QD~$0KV2QaM-;SxWR~nHf9}7l{#UlFb zR0sxx6x~uGyQA6&P1GlJux}j>2jxmj7LtE&T@2FH4a$*(HtVqS3-Vq)Gb)qi_&ad9cQyfC@$Xh;2Tf;#L@kn%-{ zeNW`uxUtRTvX@T(8~XbCo+ndfa$Dne$>dyn^Yil`ltl_0zTB}M4!q&vVX+Bvm7}Pr zsEOp?A~D~;x!%eMACO63@9*!=A(N~5qzvw{T=d7Ai%1u0^a6B2^b?_#Qs*E|H%vb1 zjPKPnN(np3Z`Ff?gXv^KEs;sdtbF}t(+6o2QA$Ct$z&R#LexgT*{9wA>q0+amG)fK0RU%d9^ui35y$`l002ovPDHLkV1ls88%zKI literal 0 HcmV?d00001 diff --git a/public/images/redmine_create.png b/public/images/redmine_create.png new file mode 100644 index 0000000000000000000000000000000000000000..a7f8c63a689b2a48c618bfa0c6d813ac6efa5c93 GIT binary patch literal 1510 zcmVtW|5QRBC2!rUh$j5TLW^ znxZn&B!UjN!{OYo^t_*Z$KT z3$Ot&1FL4H&I3-M4LDL!QE_cC=cyJlbx%*vT0C|qB_-7ujYeYNosyH2#e5(Tpl~=$ zUayyYJ|9IQkzeq8XJuvOncE@;p$?BmtycR&T3Q;J&1TYQG^AFm1?1rU(P)$jg#b>c zlUyzrzwgELs}LZvXyWefZW|uorKF@hoSB(PAQzCNDwRrr2a`&2CT6e|#>U3j3hh|( zWK~s_b3tN|8gOVwYHDgZlj?Ljp(&e}p(K?W&(>O!kB*Kqc{k>3K^|NvxSHX|7%6M2 zG;#1+KiT)aPl5g`q|zmm{+?pW+PRC8tV?1-Nx{<7(`jU6qzb-oz~@Wzrc+l}S2?uW zt~9UI*7sWv{nPj^>GGCRXw(i3BNXv_DG~~h)|O88#&^hfrc**Z>F^MkJ7TH&&X6-PS@XiUF=l~&v_4yZ3)Ei!y}l8OPSH{TWR2nkLc{? zwKURxf|l<&5J!5`VHzrW>jN5W`IOFW*+j!f57F51Z^Rk$JU$zdzcqn46bj|CKa_d; z_t&3OI25E%02RsaTeu7+>&1G89mL|_3^@lX%w3c~jNCH_^UmZozu$N85am7f9I1>c zWUH-PkT`waCembNQNb&3(7pRx;&PqO1F>PwsFuZmG1%Hd?hEJ1R#i<8eA`C)+`I*e ztq;}E{YOsG_?cg+zu|34Ew3bN-Q%PvQmO=EL|+&ZX?c&OyFh%<{Vw$IgfNt99spA8Oo0x?o)fLj~aSsv~``Y4Lc3>AWIc1>6LqXM(t zq}Cf^`@G11K97mHWun7fNiem|W;=zVzLF*712$fD#Br(d9j2%L`dn4+!8$Gdbyv;CnhGSprGKSB%P}tmt4Gfv1@8-%95R( zEi{&`k!!eeq%@gs#KOy-I6t#?O2N?4>6`DCc?k=e;7_mJZl_={C?sb8 za8qZ=CnqQ4f{V%cKi@cbk2EiX_dsY*adGj7O42#6w;mt5xl_b;OR-~a#s literal 0 HcmV?d00001 diff --git a/public/images/redmine_goto.png b/public/images/redmine_goto.png new file mode 100644 index 0000000000000000000000000000000000000000..39bd0ae2c5c0d6d4b6b36049187ea56dd4d1ba01 GIT binary patch literal 1555 zcmV+u2JHEXP)N2`}x6vLFMMV{q}w5e9!y-p8NA^rl+UrPAo0mp`}}@;JI_> zQt;RfYz1P0jG0fZfCH!lPG@Il-&o3dn#Ek*($caCk9Wet!tx^`B8Y)^3J(t#-@RTh z1p)zbyWQmRcqkYQ{(`>`|4+mqG~i*=>-8_h#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qr?4()(A6glgkQ9_w(f+>A`=o4lvvBY%igH1t)-%(BC%m? zY)n`y%ZN$&>H|-?Hf-2%2IS8`EVz`*UNrtMZ*OmZ0eW=gSjoJ?#n0~bUO z2nUf9NAbCQuBA)9S7WUQ_M^FM?CrbQC*^_R=c2PLLZg0AG`wgGv78IZS$UJf(R0Q{&fncGEtTh~7V3;;^aEcp|zIM4t9002ovPDHLk FV1kL00Nwxq literal 0 HcmV?d00001 diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 628d807d4..41ac34038 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -579,6 +579,22 @@ table.errs tr.resolved td > * { background: transparent url(images/icons/thumbs-up.png) 6px 5px no-repeat; } +#action-bar a.lighthouseapp_create { + background: transparent url(/images/lighthouseapp_create.png) 6px 5px no-repeat; +} + +#action-bar a.redmine_create { + background: transparent url(/images/redmine_create.png) 6px 5px no-repeat; +} + +#action-bar a.lighthouseapp_goto { + background: transparent url(/images/lighthouseapp_goto.png) 6px 5px no-repeat; +} + +#action-bar a.redmine_goto { + background: transparent url(/images/redmine_goto.png) 6px 5px no-repeat; +} + /* Notices Pagination */ .notice-pagination { float: left;