From cba93a7b71a24c1d0c5d37e15a4efd8da1968ade Mon Sep 17 00:00:00 2001 From: Nicolae Claudius Date: Sun, 29 Jan 2012 07:08:54 -0800 Subject: [PATCH] ui tweaks --- .../bootstrap/glyphicons-halflings-white.png | Bin 0 -> 4352 bytes app/assets/javascripts/application.js | 1 + .../stylesheets/bootstrap/bootstrap.scss | 2 +- .../domains/_list_record_columns.html.erb | 2 +- app/views/fragments/_top.html.erb | 55 +++++++++++++++--- 5 files changed, 49 insertions(+), 11 deletions(-) create mode 100644 app/assets/images/bootstrap/glyphicons-halflings-white.png diff --git a/app/assets/images/bootstrap/glyphicons-halflings-white.png b/app/assets/images/bootstrap/glyphicons-halflings-white.png new file mode 100644 index 0000000000000000000000000000000000000000..a20760bfde58d1c92cee95116059fba03c68d689 GIT binary patch literal 4352 zcmd6r_dnEu|G?izMxtxU%uI5!l8nr)ZF&&*%FGe4jtO*5mbhJzhV&et11z&&^B?xH$MZ007{+ZK!Jj01(PQ zJBFS4pH$0DefCd1HM@h*JNkcsi%oOXzj>qsEle$eQ7ApHL(XYdn5Y$Lk_3-J9p9d) zFeVfl3J47_g1XaoDXWsnBp9ZzZ74CI9RN-Nw{>+8A&#rBpZgc9WX2H3Ssv6doZP?t zS!g}lGvW1<9%?dj_G_x}3WUMN(8(x{a6_pd0yiUsf^67GGS50uSB*ORe5x6}qAf1z z@Q;2y4G{Lb?f21p)uTpChN&4q%^blZ2IsusUOhk)pe0yxPD6oHKXWSjv8&2pMdnegiQUtoXt1U0MmWAWu2&>3j$eb^qKNV z_(`JQZP&mXLT@U%-2rPy!7r|*Y1oAdlarltaUyq+yq^|d{B9_>t@Rd#@_KW9w_6P$ z^Dv8(Hi8pDJK{r0Iqq*va$cL=isZh0=1)wIoQ^vYPs$(rBz$+DY z`y}1}`M%-da686`}zw_w>8 z!BcqxVTim*F)-}$segV$ON*!Zl~dhX@Rz^K2Xurh<1-vjImult%O z!-WXvkA_agVuhluW};J;#r>)?^uHS;G?a?j;(z?Y^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{+75 z-k;nba~m^}=b7P$FAF1)S!oDKtNG-`%h{XQi6=SMH5GZ%8j?ugqt~!K zwvA_m(*=EIssFVW0EZ;o=u#R5gBB$CUL+->U32;2PM2O(drij20XBy|hH+=bu!0*KIKBj%c+ z^{)B`3$NB2yp-IHf02C#Fw!(;S&rR%2Pq(!<`Q=u&+_V4eCe z?!d0m@ndhMu%QZ`ERBCD+uU~%h>+E^Qd;Cz=IlGV(IwUrOz(+1Gkd7O z$HME|^+mAGBc4k(2jEj5$g30r-BUoK@Nn!*Td)5USoe+IZ-x9)#yd)sD}2Z?2{4@) zb|)xsK&pqOpB;+H#gbf^Pto29M<2Y>dU5pAF4p{+j=oBZ$2EXA*xI~AM@g20H7o_x z{2-Kc;SRpcxLXzU)a53ZoX%ndB^i8=>Sf&{i6CYkGSkvLj0<@C-!VKm#iX8dws__S zKp`T~rIAfaogJ!tV(~rs5)ctD#A};YXgPNI`<5=nWQjnIf<=1Pzn2y$C8yUkFKhwM z@%Ah?L`DM^@d<2evu->Oo=SVaiR<1GjYwe^G2)XY`l$Q%4H`|PpFA($N_8=6uOr0s zj+)C5x <% unless can_crud_permissions %> <% who = "#{record.user.name} #{mail_to record.user.email}" %> - diff --git a/app/views/fragments/_top.html.erb b/app/views/fragments/_top.html.erb index 3bbf070..066ad81 100644 --- a/app/views/fragments/_top.html.erb +++ b/app/views/fragments/_top.html.erb @@ -5,8 +5,16 @@
    <% if user_signed_in? %>
  • <%#= link_to('Dashboard', dashboard_path, :data => {:pjax => '#main'}) %>
  • -
  • <%= link_to 'My Domains', domains_path, :data => {:pjax => '#main'} %>
  • -
  • <%= link_to 'Dynamic Hosts', hosts_path, :data => {:pjax => '#main'} %>
  • +
  • + <%= link_to domains_path, :data => {:pjax => '#main'} do %> + My Domains + <% end %> +
  • +
  • + <%= link_to hosts_path, :data => {:pjax => '#main'} do %> + Dynamic Hosts + <% end %> +
  • <% else %>
  • <%= link_to('Home', root_path, :data => {:pjax => '#main'}) %>
  • <%= link_to('About', page_path('about'), :data => {:pjax => '#main'}) %>
  • @@ -28,15 +36,44 @@ :related => "_clyfe:vaijab" } %> -
  • <%= link_to('News', Settings.news_link) %>
  • -
  • <%= link_to('Donate', page_path('donate'), :class => 'highlight', :data => {:pjax => '#main'}) %>
  • +
  • + <%= link_to(Settings.news_link, :rel => 'tooltip', :title => Settings.news_link) do %> + News + <% end %> +
  • +
  • + <%= link_to(page_path('donate'), :class => 'highlight', :data => {:pjax => '#main'}) do %> + Donate + <% end %> +
  • <% if user_signed_in? %> -
  • <%= link_to('Help & Support', page_path('help'), :data => {:pjax => '#main'}) %>
  • -
  • <%= link_to(current_user.email, edit_user_registration_path, :title => "IP: #{client_remote_ip}", :data => {:pjax => '#main'}) %>
  • -
  • <%= link_to('Sign out', destroy_user_session_path, :method => :delete) %>
  • +
  • + <%= link_to(page_path('help'), :data => {:pjax => '#main'}) do %> + Help & Support + <% end %> +
  • +
  • + <%= link_to(edit_user_registration_path, :rel => 'tooltip', + :title => "IP: #{client_remote_ip}",:data => {:pjax => '#main'}) do %> + <%= current_user.email %> + <% end %> +
  • +
  • + <%= link_to(destroy_user_session_path, :method => :delete) do %> + Sign out + <% end %> +
  • <% else %> -
  • <%= link_to('Sign up', new_user_registration_path, :data => {:pjax => '#main'}) %>
  • -
  • <%= link_to('Sign in', new_user_session_path, :data => {:pjax => '#main'}) %>
  • +
  • + <%= link_to(new_user_registration_path, :data => {:pjax => '#main'}) do %> + Sign up + <% end %> +
  • +
  • + <%= link_to(new_user_session_path, :data => {:pjax => '#main'}) do %> + Sign in + <% end %> +
  • <% end %>