layout.erb 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. flex-wrap: wrap;
  27. height: 66vh;
  28. overflow-y: auto;
  29. }
  30. #photos .photo {
  31. flex-grow: 0;
  32. padding-bottom: 2rem;
  33. }
  34. /* work around the '*+* { margin-top: 1.5rem; }' rule from Concise CSS that interferes with CC Icons */
  35. i.cc {
  36. margin-top: 0px;
  37. }
  38. </style>
  39. </head>
  40. <body>
  41. <header container>
  42. <div grid="center">
  43. <div column><span class="flickrblue">flick</span><span class="flickrpink">r</span> license</div>
  44. <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>
  45. </div>
  46. </header>
  47. <main container>
  48. <%= yield %>
  49. </main>
  50. </body>
  51. </html>