Guest User

Untitled

a guest
Feb 19th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>MotoFoto Administration || <%= yield(:title) || "Index"%></title>
  4. <%= javascript_include_tag :defaults %>
  5. <style type="text/css">
  6. <!--
  7. body {
  8. height: 100%;
  9. background-image: url('<%= yield (:background_image) ||"/images/admin/confidential_stamp.jpg" %>');
  10. background-repeat: no-repeat;
  11. background-attachment: fixed;
  12. background-position: 60% 20%;
  13. }
  14. div#navbar {
  15. height: 30px;
  16. width: 100%;
  17. border-top: solid #000 1px;
  18. border-bottom: solid #000 1px;
  19. background-color: #336699;
  20. }
  21. div#navbar ul {
  22. margin: 0px;
  23. padding: 0px;
  24. font-family: Arial, Helvetica, sans-serif;
  25. font-size: small;
  26. color: #FFF;
  27. line-height: 30px;
  28. white-space: nowrap;
  29. }
  30. div#navbar li {
  31. list-style-type: none;
  32. display: inline;
  33. }
  34. div#navbar li a {
  35. text-decoration: none;
  36. padding: 7px 10px;
  37. color: #FFF;
  38. }
  39. div#navbar li a:link {
  40. color: #FFF:
  41. }
  42. div#navbar li a:visited {
  43. color: #CCC;
  44. }
  45. div#navbar li a:hover {
  46. font-weight: bold;
  47. color: #FFF;
  48. background-color: #3366FF;
  49. }
  50. -->
  51. </style>
  52. </head>
  53. <body>
  54. <% unless session[:user_id].nil? -%>
  55. <div id="navbar">
  56. <ul>
  57. <li><%= link_to 'Show Form Factors', :action => "show_form_factors" %></li>
  58. <li><%= link_to 'Show Internal Phone Models', :action => "show_phone_models" %></li>
  59. <li><%= link_to_remote 'Show Technologies', :url => {:action => "show_technologies", :update => {:success => "main_content"}} %></li>
  60. <li><%= link_to 'Show Photo Types', :action => "show_photo_types" %></li>
  61. <li><%= link_to 'Index', :action => "index" %></li>
  62. <li><%= link_to 'Logout', :action => "logout" %></li>
  63. </ul></td>
  64. <% end -%>
  65. </div>
  66. <%= flash[:notice] %><br /><%= yield %>
  67. </body>
  68. </html>
Add Comment
Please, Sign In to add comment