cortex-reaver 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. data/README +1 -1
  2. data/bin/cortex_reaver +3 -4
  3. data/lib/cortex_reaver.rb +270 -110
  4. data/lib/cortex_reaver/cache.rb +23 -0
  5. data/lib/cortex_reaver/config.rb +178 -74
  6. data/lib/cortex_reaver/controller/admin.rb +64 -4
  7. data/lib/cortex_reaver/controller/comment.rb +4 -4
  8. data/lib/cortex_reaver/controller/controller.rb +3 -3
  9. data/lib/cortex_reaver/controller/journal.rb +4 -2
  10. data/lib/cortex_reaver/controller/main.rb +117 -26
  11. data/lib/cortex_reaver/controller/page.rb +7 -0
  12. data/lib/cortex_reaver/controller/photograph.rb +12 -10
  13. data/lib/cortex_reaver/controller/tag.rb +1 -1
  14. data/lib/cortex_reaver/controller/user.rb +7 -2
  15. data/lib/cortex_reaver/helper/attachments.rb +2 -2
  16. data/lib/cortex_reaver/helper/crud.rb +7 -7
  17. data/lib/cortex_reaver/helper/feeds.rb +56 -38
  18. data/lib/cortex_reaver/helper/form.rb +12 -16
  19. data/lib/cortex_reaver/helper/navigation.rb +35 -16
  20. data/lib/cortex_reaver/helper/photographs.rb +2 -2
  21. data/lib/cortex_reaver/helper/sidebar.rb +44 -0
  22. data/lib/cortex_reaver/helper/tags.rb +32 -9
  23. data/lib/cortex_reaver/helper/workflow.rb +2 -14
  24. data/lib/cortex_reaver/layout/blank.rhtml +27 -31
  25. data/lib/cortex_reaver/layout/text.rhtml +54 -67
  26. data/lib/cortex_reaver/migrations/014_convert_projects_to_pages.rb +79 -0
  27. data/lib/cortex_reaver/model/comment.rb +7 -8
  28. data/lib/cortex_reaver/model/page.rb +5 -3
  29. data/lib/cortex_reaver/model/photograph.rb +57 -13
  30. data/lib/cortex_reaver/model/tag.rb +1 -4
  31. data/lib/cortex_reaver/model/user.rb +6 -3
  32. data/lib/cortex_reaver/plugin.rb +1 -1
  33. data/lib/cortex_reaver/plugins/twitter.rb +185 -0
  34. data/lib/cortex_reaver/public/css/actions.css +31 -0
  35. data/lib/cortex_reaver/public/css/admin.css +50 -27
  36. data/lib/cortex_reaver/public/css/attachments.css +11 -0
  37. data/lib/cortex_reaver/public/css/autotags.css +38 -0
  38. data/lib/cortex_reaver/public/css/code.css +10 -2
  39. data/lib/cortex_reaver/public/css/colophon.css +10 -0
  40. data/lib/cortex_reaver/public/css/commments.css +7 -0
  41. data/lib/cortex_reaver/public/css/custom.css +1 -0
  42. data/lib/cortex_reaver/public/css/flash.css +17 -0
  43. data/lib/cortex_reaver/public/css/fonts.css +22 -0
  44. data/lib/cortex_reaver/public/css/form.css +15 -3
  45. data/lib/cortex_reaver/public/css/generics.css +39 -0
  46. data/lib/cortex_reaver/public/css/icons.css +4 -0
  47. data/lib/cortex_reaver/public/css/journals.css +3 -0
  48. data/lib/cortex_reaver/public/css/main.css +30 -312
  49. data/lib/cortex_reaver/public/css/pagination.css +50 -0
  50. data/lib/cortex_reaver/public/css/photo-show.css +87 -0
  51. data/lib/cortex_reaver/public/css/photo.css +28 -97
  52. data/lib/cortex_reaver/public/css/progress.css +35 -0
  53. data/lib/cortex_reaver/public/css/sidebar.css +83 -0
  54. data/lib/cortex_reaver/public/css/table-of-contents.css +26 -0
  55. data/lib/cortex_reaver/public/css/table.css +3 -0
  56. data/lib/cortex_reaver/public/css/tags.css +29 -0
  57. data/lib/cortex_reaver/public/css/text.css +19 -1
  58. data/lib/cortex_reaver/public/css/top_actions.css +50 -0
  59. data/lib/cortex_reaver/public/css/users.css +3 -0
  60. data/lib/cortex_reaver/public/images/admin/icons.png +0 -0
  61. data/lib/cortex_reaver/public/images/admin/icons.xcf +0 -0
  62. data/lib/cortex_reaver/public/images/background_tile.png +0 -0
  63. data/lib/cortex_reaver/public/images/edit_34.png +0 -0
  64. data/lib/cortex_reaver/public/images/edit_34_prelight.png +0 -0
  65. data/lib/cortex_reaver/public/images/elided.png +0 -0
  66. data/lib/cortex_reaver/public/images/grid_34.png +0 -0
  67. data/lib/cortex_reaver/public/images/grid_34_prelight.png +0 -0
  68. data/lib/cortex_reaver/public/images/next_11.png +0 -0
  69. data/lib/cortex_reaver/public/images/next_34.png +0 -0
  70. data/lib/cortex_reaver/public/images/next_34_prelight.png +0 -0
  71. data/lib/cortex_reaver/public/images/prev_11.png +0 -0
  72. data/lib/cortex_reaver/public/images/prev_34.png +0 -0
  73. data/lib/cortex_reaver/public/images/prev_34_prelight.png +0 -0
  74. data/lib/cortex_reaver/public/js/admin.js +15 -22
  75. data/lib/cortex_reaver/public/js/autotags.js +120 -0
  76. data/lib/cortex_reaver/public/js/jquery.autocomplete.js +135 -176
  77. data/lib/cortex_reaver/public/js/jquery.color.js +124 -0
  78. data/lib/cortex_reaver/public/js/jquery.corners.min.js +7 -0
  79. data/lib/cortex_reaver/public/js/jquery.hotkeys-0.7.9.js +244 -0
  80. data/lib/cortex_reaver/public/js/jquery.js +4361 -4
  81. data/lib/cortex_reaver/public/js/jquery.periodicalupdater.js +98 -0
  82. data/lib/cortex_reaver/public/js/photo.js +3 -32
  83. data/lib/cortex_reaver/public/robots.txt +3 -0
  84. data/lib/cortex_reaver/snippets/ramaze/cache/memcached.rb +13 -10
  85. data/lib/cortex_reaver/snippets/range.rb +9 -0
  86. data/lib/cortex_reaver/support/attachments.rb +12 -0
  87. data/lib/cortex_reaver/support/comments.rb +1 -3
  88. data/lib/cortex_reaver/support/renderer.rb +20 -17
  89. data/lib/cortex_reaver/support/sequenceable.rb +6 -6
  90. data/lib/cortex_reaver/support/tags.rb +15 -7
  91. data/lib/cortex_reaver/version.rb +1 -1
  92. data/lib/cortex_reaver/view/admin/configuration.rhtml +7 -0
  93. data/lib/cortex_reaver/view/admin/index.rhtml +3 -0
  94. data/lib/cortex_reaver/view/admin/regenerate_photo_sizes.rhtml +16 -0
  95. data/lib/cortex_reaver/view/adminbox.rhtml +34 -44
  96. data/lib/cortex_reaver/view/comments/comment.rhtml +1 -1
  97. data/lib/cortex_reaver/view/comments/form.rhtml +1 -2
  98. data/lib/cortex_reaver/view/comments/post_form.rhtml +2 -10
  99. data/lib/cortex_reaver/view/head.rhtml +11 -0
  100. data/lib/cortex_reaver/view/journals/journal.rhtml +3 -3
  101. data/lib/cortex_reaver/view/journals/show.rhtml +0 -4
  102. data/lib/cortex_reaver/view/js.rhtml +1 -0
  103. data/lib/cortex_reaver/view/pages/list.rhtml +3 -23
  104. data/lib/cortex_reaver/view/pages/row.rhtml +13 -0
  105. data/lib/cortex_reaver/view/photographs/grid.rhtml +30 -36
  106. data/lib/cortex_reaver/view/photographs/show.rhtml +42 -108
  107. data/lib/cortex_reaver/view/sidebar/explore_photos.rhtml +7 -0
  108. data/lib/cortex_reaver/view/sidebar/photographs.rhtml +15 -0
  109. data/lib/cortex_reaver/view/sidebar/sections.rhtml +4 -0
  110. data/lib/cortex_reaver/view/sidebar/twitter.rhtml +12 -0
  111. data/lib/cortex_reaver/view/tags/show.rhtml +0 -10
  112. data/lib/cortex_reaver/view/tracker.rhtml +0 -0
  113. data/lib/cortex_reaver/view/users/list.rhtml +1 -7
  114. data/lib/cortex_reaver/view/users/login.rhtml +1 -1
  115. metadata +103 -43
  116. data/lib/cortex_reaver/controller/project.rb +0 -53
  117. data/lib/cortex_reaver/helper/template.rb +0 -37
  118. data/lib/cortex_reaver/model/project.rb +0 -57
  119. data/lib/cortex_reaver/public/css/ramaze_error.css +0 -90
  120. data/lib/cortex_reaver/public/images/atom-xml-icon.png +0 -0
  121. data/lib/cortex_reaver/public/images/body.png +0 -0
  122. data/lib/cortex_reaver/public/images/border_bottom.png +0 -0
  123. data/lib/cortex_reaver/public/images/border_bottom_left.png +0 -0
  124. data/lib/cortex_reaver/public/images/border_bottom_right.png +0 -0
  125. data/lib/cortex_reaver/public/images/border_left.png +0 -0
  126. data/lib/cortex_reaver/public/images/border_right.png +0 -0
  127. data/lib/cortex_reaver/public/images/border_top.png +0 -0
  128. data/lib/cortex_reaver/public/images/border_top_left.png +0 -0
  129. data/lib/cortex_reaver/public/images/border_top_right.png +0 -0
  130. data/lib/cortex_reaver/public/images/header.png +0 -0
  131. data/lib/cortex_reaver/public/images/header.xcf +0 -0
  132. data/lib/cortex_reaver/public/images/indicator.gif +0 -0
  133. data/lib/cortex_reaver/public/images/rss-xml-icon.png +0 -0
  134. data/lib/cortex_reaver/public/images/sections.png +0 -0
  135. data/lib/cortex_reaver/public/images/sections_highlight.png +0 -0
  136. data/lib/cortex_reaver/public/js/jquery.autocompletefb.js +0 -125
  137. data/lib/cortex_reaver/view/photographs/sidebar.rhtml +0 -7
  138. data/lib/cortex_reaver/view/projects/form.rhtml +0 -14
  139. data/lib/cortex_reaver/view/projects/list.rhtml +0 -31
  140. data/lib/cortex_reaver/view/projects/show.rhtml +0 -42
  141. data/lib/proto/cortex_reaver.yaml +0 -47
@@ -30,7 +30,7 @@
30
30
  <a id="comment_<%= @comment.id %>_comments" ></a>
31
31
  <div class="comments">
32
32
  <% @comment.comments_dataset.order(:created_on).all.each do |comment| %>
33
- <%= render_template '../comments/comment.rhtml', 'comment' => comment %>
33
+ <%= CortexReaver::CommentController.render_view :comment, :comment => comment %>
34
34
  <% end %>
35
35
  </div>
36
36
  <% end %>
@@ -19,7 +19,6 @@
19
19
  [:body, {:type => 'textarea'}],
20
20
  [:comment_id, {:type => 'hidden'}],
21
21
  [:journal_id, {:type => 'hidden'}],
22
- [:photograph_id, {:type => 'hidden'}],
23
- [:project_id, {:type => 'hidden'}]
22
+ [:photograph_id, {:type => 'hidden'}]
24
23
  ] %>
25
24
  </div>
@@ -1,15 +1,8 @@
1
1
  <div class="post comment_form">
2
- <a id="post-comment">
2
+ <a id="post-comment"></a>
3
3
  <h2>Post a Comment</h2>
4
4
 
5
- <% unless @new_comment.errors.empty? %>
6
- <div class="form-errors">
7
- <ul>
8
- <% @new_comment.errors.each do |attribute, error| %>
9
- <li><%= attribute.to_s.titleize %> <%= error %>.</li>
10
- <% end %>
11
- </div>
12
- <% end %>
5
+ <%= errors_on @new_comment %>
13
6
 
14
7
  <form class="comment-form" action="<%= CortexReaver::CommentController.r :post %>" method="post">
15
8
  <%= form_p :title, :model => @new_comment %>
@@ -35,7 +28,6 @@
35
28
  <%= form_p :comment_id, :type => 'hidden', :model => @new_comment %>
36
29
  <%= form_p :journal_id, :type => 'hidden', :model => @new_comment %>
37
30
  <%= form_p :photograph_id, :type => 'hidden', :model => @new_comment %>
38
- <%= form_p :project_id, :type => 'hidden', :model => @new_comment %>
39
31
  <%= form_p :page_id, :type => 'hidden', :model => @new_comment %>
40
32
  <input type="submit" value="Post Comment" />
41
33
  </form>
@@ -0,0 +1,11 @@
1
+ <title><%=h (@title || CortexReaver.config[:site][:name]) %></title>
2
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
3
+ <meta http-equiv="Content-Style-Type" content="text/css" />
4
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
+ <meta http-equiv="expires" content="0" />
6
+ <meta name="description" content="<%= attr_h CortexReaver.config[:site][:description] %>" />
7
+ <meta name="generator" content="Cortex Reaver <%= CortexReaver::APP_VERSION %>" />
8
+ <meta name="keywords" content="<%= attr_h CortexReaver.config[:site][:keywords] %>" />
9
+ <meta name="author" content="<%= attr_h CortexReaver.config[:site][:author] %>" />
10
+ <meta name="date" content="<%= Time.now.iso8601 %>" />
11
+ <link rel="stylesheet" type="text/css" href="/css/style.css" />
@@ -10,18 +10,18 @@
10
10
  </div>
11
11
  <div class="footer">
12
12
  <ul class="actions">
13
- <li><a href="<%= @journal.url %>#comments">
13
+ <li><a class="comment" href="<%= @journal.url %>#comments">
14
14
  <img src="/images/comment.gif" class="icon" alt="comment" />
15
15
  <%= @journal.comment_count %> <%= @journal.comment_count == 1 ? 'comment' : 'comments' %>
16
16
  </a></li>
17
17
  <% if user.can_edit? @journal %>
18
- <li><a class="edit-link" href="/journals/edit/<%= @journal.id %>">
18
+ <li><a class="edit" href="/journals/edit/<%= @journal.id %>">
19
19
  <img src="/images/edit.gif" class="icon" alt="edit" /> Edit
20
20
  </a></li>
21
21
  <% end %>
22
22
  <% if user.can_delete? @journal %>
23
23
  <li>
24
- <a href="<%= CortexReaver::JournalController.r(:delete, @journal.id) %>" onclick="return confirm('Are you sure you want to delete this journal?');">
24
+ <a class="delete" href="<%= CortexReaver::JournalController.r(:delete, @journal.id) %>" onclick="return confirm('Are you sure you want to delete this journal?');">
25
25
  <img src="/images/delete.gif" class="icon" alt="delete" /> Delete
26
26
  </a>
27
27
  </li>
@@ -1,5 +1 @@
1
- <%= model_nav @journal %>
2
-
3
1
  <%= CortexReaver::JournalController.render_view :journal, 'journal' => @journal %>
4
-
5
- <%= model_nav @journal %>
@@ -0,0 +1 @@
1
+ <script type="text/javascript" src="/js/site.js"></script>
@@ -1,29 +1,9 @@
1
1
  <div class="pages">
2
+ <h1>All Pages</h1>
2
3
  <table>
3
- <thead>
4
- <tr>
5
- <th>Name</th>
6
- <th>Title</th>
7
- <% if user.can_edit? CortexReaver::Page.new %>
8
- <th></th>
9
- <% end %>
10
- <% if user.can_delete? CortexReaver::Page.new %>
11
- <th></th>
12
- <% end %>
13
- </tr>
14
- </thead>
15
4
  <tbody>
16
- <% @pages.all.each do |page| %>
17
- <tr>
18
- <td><%= a(page.name, page.url) %></td>
19
- <td><%= page.title %></td>
20
- <% if user.can_edit? page %>
21
- <td><a href="/pages/edit/<%= page.id %>">Edit</a></td>
22
- <% end %>
23
- <% if user.can_delete? page %>
24
- <td><%= a 'Delete', CortexReaver::PageController.r(:delete, :id => page.id), :onclick => "return confirm('Are you sure you want to delete this page?');" %></td>
25
- <% end %>
26
- </tr>
5
+ <% @pages.top.order(:name).each do |page| %>
6
+ <%= CortexReaver::MainController.render_view 'pages/row', :page => page %>
27
7
  <% end %>
28
8
  </tbody>
29
9
  </table>
@@ -0,0 +1,13 @@
1
+ <% @depth ||= 0 %>
2
+ <tr>
3
+ <td style="padding-left: <%= @depth %>em"><%= CortexReaver::MainController.a(@page.title, @page.url) %></td>
4
+ <% if user.can_edit? @page %>
5
+ <td><a href="/pages/edit/<%= @page.id %>">Edit</a></td>
6
+ <% end %>
7
+ <% if user.can_delete? @page %>
8
+ <td><%= a 'Delete', CortexReaver::PageController.r(:delete, :id => @page.id), :onclick => "return confirm('Are you sure you want to delete this page?');" %></td>
9
+ <% end %>
10
+ </tr>
11
+ <% @page.pages.each do |page| %>
12
+ <%= CortexReaver::PageController.render_view 'row', :page => page, :depth => @depth + 1 %>
13
+ <% end %>
@@ -1,36 +1,30 @@
1
- <% columns = 4 %>
2
- <% i = 0 %>
3
- <table class="photographs grid">
4
- <tr>
5
- <% @photographs.all.each do |photograph| %>
6
- <td>
7
- <table class="thumbnail frame" cellspacing="0" cellpadding="0">
8
- <tr>
9
- <td class="border_top_left"></td>
10
- <td class="border_top"></td>
11
- <td class="border_top_right"></td>
12
- </tr>
13
- <tr>
14
- <td class="border_left"></td>
15
- <td id="photograph_<%= photograph.name %>" class="content">
16
- <a href="<%= photograph.url %>">
17
- <img src="<%= photograph.thumbnail_public_path %>" class="grid thumbnail" alt="<%=h photograph.title %>" />
18
- </a>
19
- </td>
20
- <td class="border_right"></td>
21
- </tr>
22
- <tr>
23
- <td class="border_bottom_left"></td>
24
- <td class="border_bottom"></td>
25
- <td class="border_bottom_right"></td>
26
- </tr>
27
- </table>
28
- </td>
29
- <% if (i += 1) == 4 %>
30
- </tr>
31
- <tr>
32
- <% i = 0 %>
33
- <% end %>
34
- <% end %>
35
- </tr>
36
- </table>
1
+ <ol class="photographs grid">
2
+ <% @photographs.all.each do |photograph| %>
3
+ <li id="photograph_<%= photograph.name %>" class="photograph thumb">
4
+ <a href="<%= photograph.url %>">
5
+ <img src="<%= photograph.path(:public, 'grid') %>" alt="<%=h photograph.title %>" />
6
+ </a>
7
+ </li>
8
+ <% end %>
9
+ </ol>
10
+
11
+ <div class="clear" style="height: 4px;"></div>
12
+
13
+ <script type="text/javascript">
14
+ /* <![CDATA[ */
15
+ $(document).ready(function() {
16
+ $('.grid .photograph > *').each(function(i) {
17
+ var elem = $(this);
18
+ elem.corners("6px");
19
+ elem.hover(
20
+ function() {
21
+ elem.animate( {backgroundColor: "#222"}, 1)
22
+ },
23
+ function() {
24
+ elem.animate( {backgroundColor: "#111"}, 200);
25
+ }
26
+ );
27
+ });
28
+ });
29
+ /* ]]> */
30
+ </script>
@@ -1,114 +1,48 @@
1
- <table class="photo frame" cellspacing="0" cellpadding="0">
2
- <tr>
3
- <td class="border_top_left"></td>
4
- <td class="border_top"></td>
5
- <td class="border_top_right"></td>
6
- </tr>
7
- <tr>
8
- <td class="border_left"></td>
9
- <td id="photograph_<%= @photograph.name %>" class="content">
10
- <div id="canvas">
11
- <div id="bar">
12
- <ul class="actions">
13
- <% if previous_photo = @photograph.previous %>
14
- <li>
15
- <a href="<%= previous_photo.url %>">&laquo; Previous</a>
16
- </li>
17
- <% end %>
18
- <li>
19
- <a href="<%= @photograph.absolute_window_url %>">Back to Thumbnails</a>
20
- </li>
21
- <% if user.can_edit? @photograph %>
22
- <li>
23
- <%= a('Edit', r(:edit, @photograph.id)) %>
24
- </li>
25
- <% end %>
26
- <% if next_photo = @photograph.next %>
27
- <li>
28
- <a href="<%= next_photo.url %>">Next &raquo;</a>
29
- </li>
30
- <% end %>
31
- </ul>
32
- </div>
33
- <script type="text/javascript">
34
- /* <![CDATA[ */
35
- $('#bar').css('margin-bottom', -1 * $('#bar').height());
36
- /* ]]> */
37
- </script>
1
+ <div id="top" class="photograph">
2
+ <% if @model %>
3
+ <%= model_nav @model %>
4
+ <% end %>
5
+ <h1><a href="/"><%=h CortexReaver.config.site.name %></a></h1>
6
+ </div>
38
7
 
39
- <img src="<%= @photograph.full_public_path %>" id="photo" alt="<%= attr_h @photograph.title %>" title="<%= attr_h @photograph.title %>" />
8
+ <div id="photograph_<%= @photograph.name %>" class="photograph full">
9
+ <div class="photograph frame">
10
+ <img src="<%= @photograph.full_public_path %>" alt="<%= attr_h @photograph.title %>" title="<%= attr_h @photograph.title %>" />
11
+ <div class="byline">
12
+ <div class="description"><%= description_of @photograph %></div>
13
+ <% unless @photograph.tags.empty? %>
14
+ <div class="tags"><%= tags_on @photograph %></div>
15
+ <% end %>
16
+ </div>
17
+ </div>
18
+
19
+ <h2 class="title"><%=h @photograph.title %></h2>
40
20
 
41
- </div>
42
21
 
43
- <h2>
44
- <% if previous_photo %>
45
- <a href="<%= previous_photo.url %>">&laquo;</a>
46
- <% end %>
47
- <%=h @photograph.title %>
48
- <% if next_photo %>
49
- <a href="<%= next_photo.url %>">&raquo;</a>
50
- <% end %>
51
- </h2>
52
- <div class="byline">
53
- <div class="description"><%= description_of @photograph %></div>
54
- <% unless @photograph.tags.empty? %>
55
- <div class="tags"><%= tags_on @photograph %></div>
56
- <% end %>
57
- </div>
58
- </td>
59
- <td class="border_right"></td>
60
- </tr>
61
- <tr>
62
- <td class="border_bottom_left"></td>
63
- <td class="border_bottom"></td>
64
- <td class="border_bottom_right"></td>
65
- </tr>
66
- </table>
22
+ <% unless @photograph.comments.empty? %>
23
+ <div class="comments frame">
24
+ <a id="comments"></a>
25
+ <% @photograph.comments_dataset.order(:created_on).all.each do |comment| %>
26
+ <%= CortexReaver::CommentController.render_view :comment, 'comment' => comment %>
27
+ <% end %>
28
+ </div>
29
+ <% end %>
67
30
 
68
- <% unless @photograph.comments.empty? %>
69
- <table class="text frame" cellspacing="0" cellpadding="0">
70
- <tr>
71
- <td class="border_top_left"></td>
72
- <td class="border_top"></td>
73
- <td class="border_top_right"></td>
74
- </tr>
75
- <tr>
76
- <td class="border_left"></td>
77
- <td class="content">
78
- <div class="comments">
79
- <a id="comments"></a>
80
- <% @photograph.comments_dataset.order(:created_on).all.each do |comment| %>
81
- <%= CortexReaver::CommentController.render_view :comment, 'comment' => comment %>
82
- <% end %>
83
- </div>
31
+ <div class="comments frame">
32
+ <%= CortexReaver::CommentController.render_view :post_form, 'comment' => @new_comment %>
33
+ </div>
84
34
 
85
- </td>
86
- <td class="border_right"></td>
87
- </tr>
88
- <tr>
89
- <td class="border_bottom_left"></td>
90
- <td class="border_bottom"></td>
91
- <td class="border_bottom_right"></td>
92
- </tr>
93
- </table>
94
- <% end %>
35
+ <div id="colophon">
36
+ Copyright &copy;
37
+ <%= @model.updated_on.year %>
38
+ <%= user_link @model %>
39
+ </div>
95
40
 
96
- <table class="text frame" cellspacing="0" cellpadding="0">
97
- <tr>
98
- <td class="border_top_left"></td>
99
- <td class="border_top"></td>
100
- <td class="border_top_right"></td>
101
- </tr>
102
- <tr>
103
- <td class="border_left"></td>
104
- <td class="content">
105
- <%= CortexReaver::CommentController.render_view :post_form, 'comment' => @new_comment %>
106
- </td>
107
- <td class="border_right"></td>
108
- </tr>
109
- <tr>
110
- <td class="border_bottom_left"></td>
111
- <td class="border_bottom"></td>
112
- <td class="border_bottom_right"></td>
113
- </tr>
114
- </table>
41
+ <script type="text/javascript">
42
+ /* <![CDATA[ */
43
+ $(document).ready(function() {
44
+ $('.photo.full .frame').corners("10px");
45
+ });
46
+ /* ]]> */
47
+ </script>
48
+ </div>
@@ -0,0 +1,7 @@
1
+ <!-- Here's an example of how to make a custom navigation sidebar box -->
2
+ <div class="explore box">
3
+ <div class="top">Explore</div>
4
+ <%= section_nav([
5
+ ['Favorites', CortexReaver::PhotographController.r(:tagged, :favorite)]
6
+ ]) %>
7
+ </div>
@@ -0,0 +1,15 @@
1
+ <% photographs = CortexReaver::Photograph.recent.viewable_by(user).all %>
2
+ <% if photographs.size > 0 %>
3
+ <div class="photographs box">
4
+ <div class="top"><a href="/photographs">Images</a></div>
5
+ <ul class="photographs strip">
6
+ <% photographs.each do |photograph| %>
7
+ <li class="photo thumb" id="photograph_<%= photograph.name %>">
8
+ <a href="<%= photograph.url %>">
9
+ <img src="<%= photograph.thumbnail_public_path %>" alt="<%=attr_h photograph.title %>" />
10
+ </a>
11
+ </li>
12
+ <% end %>
13
+ </ul>
14
+ </div>
15
+ <% end %>
@@ -0,0 +1,4 @@
1
+ <div class="sections box">
2
+ <div class="top"><a href="/">Site</a></div>
3
+ <%= section_nav CortexReaver.config.view.sections %>
4
+ </div>
@@ -0,0 +1,12 @@
1
+ <div class="twitter box">
2
+ <div class="top"><a href="http://twitter.com/<%= CortexReaver.config.plugins.twitter.username %>">Status</a></div>
3
+ <ul class="text">
4
+ <% tweets = CortexReaver::Plugins::Twitter.recent_tweets %>
5
+ <% tweets.each do |tweet| %>
6
+ <li class="status">
7
+ <%= tweet[:html] %><br />
8
+ <span class="date"><%=h tweet[:created_at].strftime("%b %d %H:%M") %></span>
9
+ </li>
10
+ <% end %>
11
+ </ul>
12
+ </div>
@@ -11,16 +11,6 @@
11
11
  </ul>
12
12
  </div>
13
13
  <% end %>
14
- <% unless (projects = CortexReaver::Project.tagged_with(@tags)).empty? %>
15
- <div class="projects">
16
- <h3>Projects</h3>
17
- <ul>
18
- <% projects.each do |project| %>
19
- <li><a href="<%= project.url%>"><%= h project.title %></a></li>
20
- <% end %>
21
- </ul>
22
- </div>
23
- <% end %>
24
14
  <% unless (journals = CortexReaver::Journal.tagged_with(@tags)).empty? %>
25
15
  <div class="journals">
26
16
  <h3>Journals</h3>
File without changes
@@ -1,6 +1,4 @@
1
- <% if @page %>
2
- <%= page_nav CortexReaver::User, @page %>
3
- <% end %>
1
+ <h1>All Users</h1>
4
2
 
5
3
  <table class="users">
6
4
  <thead>
@@ -39,7 +37,3 @@
39
37
  <% end %>
40
38
  </tbody>
41
39
  </table>
42
-
43
- <% if @page %>
44
- <%= page_nav CortexReaver::User, @page %>
45
- <% end %>