layout.erb 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <!DOCTYPE HTML>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <meta name="HandheldFriendly" content="True">
  8. <meta name="MobileOptimized" content="320">
  9. <title>flickr license</title>
  10. <link rel="stylesheet" href="https://cdn.concisecss.com/v4.1/concise.min.css">
  11. <link rel="stylesheet" href="https://cdn.concisecss.com/concise-ui/v0.2/concise-ui.min.css">
  12. <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/blitzer/jquery-ui.css">
  13. <link href="https://cdn.rawgit.com/cc-icons/cc-icons/1.2.1/css/cc-icons.min.css" rel="stylesheet">
  14. <style>
  15. .flickrblue {
  16. color: #0063dc;
  17. }
  18. .flickrpink {
  19. color: #ff0084;
  20. }
  21. #error iframe {
  22. height: 100%;
  23. width: 100%;
  24. }
  25. #photos {
  26. height: 66vh;
  27. overflow-y: auto;
  28. }
  29. /* work around the '*+* { margin-top: 1.5rem; }' rule from Concise CSS that interferes with CC Icons */
  30. i.cc {
  31. margin-top: 0px;
  32. }
  33. </style>
  34. </head>
  35. <body>
  36. <header container>
  37. <div grid="center">
  38. <div column><span class="flickrblue">flick</span><span class="flickrpink">r</span> license</div>
  39. <div column style="text-align: right;"><a href="<%= @user.photosurl %>"><img src="<%= @user.buddyicon %>"> <%= @user.username %></a> <% if @user.fullname && !@user.fullname.empty? %>(<%= @user.fullname %>)<% end %> | <a href="/logout">logout</a></div>
  40. </div>
  41. </header>
  42. <main container>
  43. <%= yield %>
  44. </main>
  45. </body>
  46. </html>