| |   |
| 24 | 24 | # find(:all, :conditions => ["milestone_id = '#{milestone_id}'"], :order => "due_date DESC") |
| 25 | 25 | # end |
| 26 | 26 | |
| 27 | def self.find_by_slug(slug) |
| 28 | find(:first, :conditions => ["slug = '#{slug}'"]) |
| 29 | end |
| 27 | 30 | |
| 28 | 31 | def self.find_critical (project_id) |
| 29 | 32 | first_milestone = Milestone.find_current_milestone(project_id) |
| … | … | |
| 40 | 40 | WHERE milestones.id = #{first_milestone.id} |
| 41 | 41 | AND milestones.project_id = #{project_id} |
| 42 | 42 | AND tickets.status IN ('proposed', 'open') |
| 43 | | AND tickets.priority = 'critical'") if first_milestone |
| 43 | AND tickets.priority = 'critical' |
| 44 | ORDER BY created_at DESC") if first_milestone |
| 44 | 45 | end |
| 46 | |
| 47 | def self.find_recent (project_id) |
| 48 | first_milestone = Milestone.find_current_milestone(project_id) |
| 49 | find_by_sql("SELECT tickets.slug, |
| 50 | tickets.summary, |
| 51 | users.fullname, |
| 52 | tickets.created_at |
| 53 | FROM tickets |
| 54 | JOIN users ON tickets.submitter_id = users.id |
| 55 | JOIN milestones ON tickets.milestone_id = milestones.id |
| 56 | WHERE milestones.id = #{first_milestone.id} |
| 57 | AND milestones.project_id = #{project_id} |
| 58 | AND tickets.status IN ('proposed', 'open') |
| 59 | AND NOT tickets.priority = 'critical' |
| 60 | ORDER BY created_at DESC |
| 61 | LIMIT 3") if first_milestone |
| 62 | end |
| 63 | |
| 45 | 64 | |
| 46 | 65 | def self.qconcat (filters, types, lstart) |
| 47 | 66 | s = "" |
| toggle raw diff |
--- a/app/models/ticket.rb
+++ b/app/models/ticket.rb
@@ -24,6 +24,9 @@ class Ticket < ActiveRecord::Base
# find(:all, :conditions => ["milestone_id = '#{milestone_id}'"], :order => "due_date DESC")
# end
+ def self.find_by_slug(slug)
+ find(:first, :conditions => ["slug = '#{slug}'"])
+ end
def self.find_critical (project_id)
first_milestone = Milestone.find_current_milestone(project_id)
@@ -37,8 +40,27 @@ class Ticket < ActiveRecord::Base
WHERE milestones.id = #{first_milestone.id}
AND milestones.project_id = #{project_id}
AND tickets.status IN ('proposed', 'open')
- AND tickets.priority = 'critical'") if first_milestone
+ AND tickets.priority = 'critical'
+ ORDER BY created_at DESC") if first_milestone
end
+
+ def self.find_recent (project_id)
+ first_milestone = Milestone.find_current_milestone(project_id)
+ find_by_sql("SELECT tickets.slug,
+ tickets.summary,
+ users.fullname,
+ tickets.created_at
+ FROM tickets
+ JOIN users ON tickets.submitter_id = users.id
+ JOIN milestones ON tickets.milestone_id = milestones.id
+ WHERE milestones.id = #{first_milestone.id}
+ AND milestones.project_id = #{project_id}
+ AND tickets.status IN ('proposed', 'open')
+ AND NOT tickets.priority = 'critical'
+ ORDER BY created_at DESC
+ LIMIT 3") if first_milestone
+ end
+
def self.qconcat (filters, types, lstart)
s = "" |
| |   |
| 6 | 6 | |
| 7 | 7 | protected |
| 8 | 8 | |
| 9 | | # |
| 10 | 9 | def self.find_by_search(phrase) |
| 11 | 10 | #find(:all, :conditions => ["status = '#{:published}' AND title like ?", "%" << phrase << "%"]) |
| 12 | 11 | end |
| 13 | 12 | |
| 14 | | # |
| 15 | 13 | def self.find_by_id(wiki_id) |
| 16 | 14 | find(:first, :conditions => ["status = '#{:published}' AND id = '#{wiki_id}'"]) |
| 17 | 15 | end |
| 18 | 16 | |
| 19 | | # |
| 20 | 17 | def self.find_by_slug(slug) |
| 21 | 18 | # removed status = '#{:published}', needs to be tested for when called |
| 22 | 19 | find(:first, :conditions => ["slug = '#{slug}'"]) |
| 23 | 20 | end |
| 24 | 21 | |
| 25 | | # |
| 26 | 22 | def self.find_by_project(id) |
| 27 | 23 | find(:all, :conditions => ["project_id = '#{id}'"], :order => "views DESC, created_at ASC") |
| 28 | 24 | end |
| toggle raw diff |
--- a/app/models/wiki.rb
+++ b/app/models/wiki.rb
@@ -6,23 +6,19 @@ class Wiki < ActiveRecord::Base
protected
- #
def self.find_by_search(phrase)
#find(:all, :conditions => ["status = '#{:published}' AND title like ?", "%" << phrase << "%"])
end
- #
def self.find_by_id(wiki_id)
find(:first, :conditions => ["status = '#{:published}' AND id = '#{wiki_id}'"])
end
- #
def self.find_by_slug(slug)
# removed status = '#{:published}', needs to be tested for when called
find(:first, :conditions => ["slug = '#{slug}'"])
end
- #
def self.find_by_project(id)
find(:all, :conditions => ["project_id = '#{id}'"], :order => "views DESC, created_at ASC")
end |
| |   |
| 7 | 7 | <p><%= @project.summary %> <%= link_to "[more]", project_wiki_path(@project.slug, @project.wiki_slug), :class => "small" %></p> |
| 8 | 8 | |
| 9 | 9 | <% unless @critical_tickets.empty? %> |
| 10 | | <h4>Critical Tickets</h4> |
| 10 | <h4>Recent Tickets</h4> |
| 11 | 11 | <hr /> |
| 12 | 12 | <ul> |
| 13 | 13 | <% for ticket in @critical_tickets %> |
| … | … | |
| 15 | 15 | <%= link_to ticket.slug, project_ticket_path(@project.slug, ticket.slug) %> by <strong><%= ticket.fullname %></strong> <span class='small_grey'>(<%= time_ago_in_words(ticket.created_at) %> ago)</span><br /> |
| 16 | 16 | <span class='red'><%= ticket.summary %></span></li> |
| 17 | 17 | <% end %> |
| 18 | <% for ticket in @tickets %> |
| 19 | <li> |
| 20 | <%= link_to ticket.slug, project_ticket_path(@project.slug, ticket.slug) %> by <strong><%= ticket.fullname %></strong> <span class='small_grey'>(<%= time_ago_in_words(ticket.created_at) %> ago)</span><br /> |
| 21 | <%= ticket.summary %></li> |
| 22 | <% end %> |
| 18 | 23 | </ul> |
| 19 | 24 | <%= link_to "[more]", project_tickets_path(@project.slug), :class => "small" %><br /> |
| 20 | 25 | <% end %> |
| toggle raw diff |
--- a/app/views/projects/ac_show.html.erb
+++ b/app/views/projects/ac_show.html.erb
@@ -7,7 +7,7 @@
<p><%= @project.summary %> <%= link_to "[more]", project_wiki_path(@project.slug, @project.wiki_slug), :class => "small" %></p>
<% unless @critical_tickets.empty? %>
-<h4>Critical Tickets</h4>
+<h4>Recent Tickets</h4>
<hr />
<ul>
<% for ticket in @critical_tickets %>
@@ -15,6 +15,11 @@
<%= link_to ticket.slug, project_ticket_path(@project.slug, ticket.slug) %> by <strong><%= ticket.fullname %></strong> <span class='small_grey'>(<%= time_ago_in_words(ticket.created_at) %> ago)</span><br />
<span class='red'><%= ticket.summary %></span></li>
<% end %>
+<% for ticket in @tickets %>
+ <li>
+ <%= link_to ticket.slug, project_ticket_path(@project.slug, ticket.slug) %> by <strong><%= ticket.fullname %></strong> <span class='small_grey'>(<%= time_ago_in_words(ticket.created_at) %> ago)</span><br />
+ <%= ticket.summary %></li>
+<% end %>
</ul>
<%= link_to "[more]", project_tickets_path(@project.slug), :class => "small" %><br />
<% end %> |
| |   |
| 17 | 17 | <tr> |
| 18 | 18 | <td><%= link_to ticket.slug, project_ticket_path(@project.slug, ticket.slug) %></td> |
| 19 | 19 | <td><%= ticket.name %></td> |
| 20 | | <td><%= "<span class='red'>" if ticket.priority == :critical %><%= ticket.summary %><%= "</span>" if ticket.priority == :critical %></td> |
| 20 | <td><div class='cut'><%= "<span class='red'>" if ticket.priority == :critical %><%= ticket.summary %><%= "</span>" if ticket.priority == :critical %></div></td> |
| 21 | 21 | <td><%= ticket.fullname %></td> |
| 22 | 22 | <td><%= ticket.formatted_ttype %></td> |
| 23 | 23 | <td><%= ticket.status.to_s.capitalize %></td> |
| … | … | |
| 28 | 28 | </table> |
| 29 | 29 | <br /> |
| 30 | 30 | |
| 31 | <%= div_formattedtext_close %> |
| 32 | |
| 31 | 33 | <%= render :partial => "projects/ac_project_footer" %> |
| 34 | |
| toggle raw diff |
--- a/app/views/tickets/ac_project_index.html.erb
+++ b/app/views/tickets/ac_project_index.html.erb
@@ -17,7 +17,7 @@
<tr>
<td><%= link_to ticket.slug, project_ticket_path(@project.slug, ticket.slug) %></td>
<td><%= ticket.name %></td>
- <td><%= "<span class='red'>" if ticket.priority == :critical %><%= ticket.summary %><%= "</span>" if ticket.priority == :critical %></td>
+ <td><div class='cut'><%= "<span class='red'>" if ticket.priority == :critical %><%= ticket.summary %><%= "</span>" if ticket.priority == :critical %></div></td>
<td><%= ticket.fullname %></td>
<td><%= ticket.formatted_ttype %></td>
<td><%= ticket.status.to_s.capitalize %></td>
@@ -28,4 +28,7 @@
</table>
<br />
+<%= div_formattedtext_close %>
+
<%= render :partial => "projects/ac_project_footer" %>
+ |
| |   |
| 1 | <%= render :partial => "projects/ac_project_header", :locals => { :tab => PRJ_TAB_TICKETS, :project => @project, :pagetitle => @title } %> |
| 2 | |
| 3 | <%= div_formattedtext_open %> |
| 4 | |
| 5 | <ul> |
| 6 | <li>Summary: <%= @ticket.summary %></li> |
| 7 | <li>Detail: <%= @ticket.detail %></li> |
| 8 | <li>Type: <%= @ticket.ttype.to_s.capitalize %></li> |
| 9 | <li>Status: <%= @ticket.status.to_s.capitalize %></li> |
| 10 | <li>Impact: <%= @ticket.impact.to_s.capitalize %></li> |
| 11 | <li>Priority: <%= @ticket.priority.to_s.capitalize %></li> |
| 12 | <li>Audience: <%= @ticket.audience.to_s.capitalize %></li> |
| 13 | <li>CC: <%= @ticket.cc %></li> |
| 14 | <li>Slug: <%= @ticket.slug %></li> |
| 15 | <li>Open Date: <%= @ticket.open_date %></li> |
| 16 | <li>Close Date: <%= @ticket.close_date %></li> |
| 17 | <li>Views: <%= @ticket.views.to_s %></li> |
| 18 | <li>Milestone: <%= @ticket.milestone_id %></li> |
| 19 | <li>Assignee: <%= @ticket.assignee_id %></li> |
| 20 | <li>Submitter: <%= @ticket.submitter_id %></li> |
| 21 | </ul> |
| 22 | |
| 23 | |
| 24 | |
| 25 | <%= div_formattedtext_close %> |
| 26 | |
| 27 | <%= render :partial => "projects/ac_project_footer" %> |
| toggle raw diff |
--- /dev/null
+++ b/app/views/tickets/ac_project_show.html.erb
@@ -0,0 +1,27 @@
+<%= render :partial => "projects/ac_project_header", :locals => { :tab => PRJ_TAB_TICKETS, :project => @project, :pagetitle => @title } %>
+
+<%= div_formattedtext_open %>
+
+<ul>
+ <li>Summary: <%= @ticket.summary %></li>
+ <li>Detail: <%= @ticket.detail %></li>
+ <li>Type: <%= @ticket.ttype.to_s.capitalize %></li>
+ <li>Status: <%= @ticket.status.to_s.capitalize %></li>
+ <li>Impact: <%= @ticket.impact.to_s.capitalize %></li>
+ <li>Priority: <%= @ticket.priority.to_s.capitalize %></li>
+ <li>Audience: <%= @ticket.audience.to_s.capitalize %></li>
+ <li>CC: <%= @ticket.cc %></li>
+ <li>Slug: <%= @ticket.slug %></li>
+ <li>Open Date: <%= @ticket.open_date %></li>
+ <li>Close Date: <%= @ticket.close_date %></li>
+ <li>Views: <%= @ticket.views.to_s %></li>
+ <li>Milestone: <%= @ticket.milestone_id %></li>
+ <li>Assignee: <%= @ticket.assignee_id %></li>
+ <li>Submitter: <%= @ticket.submitter_id %></li>
+</ul>
+
+
+
+<%= div_formattedtext_close %>
+
+<%= render :partial => "projects/ac_project_footer" %> |
| |   |
| 27 | 27 | div.hr hr {display: none;} |
| 28 | 28 | |
| 29 | 29 | /* Page holds all sections - header, breadcrumb, content, footer */ |
| 30 | | #page { text-align: left; margin: 0 auto; min-width: 960px; } /* holds entire page including header */ |
| 30 | #page { text-align: left; margin: 0 auto; min-width: 1010px; } /* holds entire page including header */ |
| 31 | 31 | |
| 32 | 32 | /* Header holds the top menu and logo */ |
| 33 | 33 | #header { display: block; background: #ededed; border-bottom: 1px solid #aaa; padding: 0px; margin: 0px; width: 100%; height: 29px; } |
| … | … | |
| 132 | 132 | .formattedtext .screenshot { display: block; } |
| 133 | 133 | .formattedtext .screenshot img { border: 1px solid #aaa; display: inline; margin: 0px 10px 0px 0px; } |
| 134 | 134 | |
| 135 | | .formattedtext .red { color: #ff0000; background-color: #ffe0e0; padding-left: 2px; padding-right: 2px; font-weight: 600; } |
| 135 | .formattedtext .red { color: #ff0000; background-color: #ffe0e0; padding: 1px 3px 1px 3px; font-weight: 600; } |
| 136 | 136 | .formattedtext .small_grey { color: grey; font-size: 0.8em; } |
| 137 | 137 | .formattedtext .small { font-size: 0.8em; } |
| 138 | 138 | |
| … | … | |
| 197 | 197 | table.right_default_table .count { font-size: 0.9em; } |
| 198 | 198 | table.right_default_table .function { margin: 10px 0px 0px 0px; background-color: #fff; text-decoration: none; padding: 4px 8px 4px 8px; border: 1px solid #dde; font-weight: 800; } |
| 199 | 199 | |
| 200 | table.right_input { border: 0px; width: 100%; margin: 0px 0px 20px 0px; border-spacing: 0px; } |
| 201 | |
| 200 | 202 | /* |
| 201 | 203 | table.releasedownload { margin-top: 10px; margin-bottom: 20px; background-color: #fff; border-spacing: 0px; } |
| 202 | 204 | table.releasedownload td { vertical-align: top; color: #000; font-size: 1.0em; border: 0px; } |
| … | … | |
| 218 | 218 | table.public { margin: 0px; background-color: #ddd; border-spacing: 1px; width: 100% } |
| 219 | 219 | table.public th { text-align: center; background-color: #eee; color: #000; font-size: 1.0em; padding: 4px; border: 1px solid #fff; font-weight: normal; } |
| 220 | 220 | table.public td { vertical-align: top; background-color: #fff; color: #000; font-size: 1.0em; padding: 4px 6px 4px 6px; border: 0px; } |
| 221 | div.cut { margin: 0; padding: 0; overflow: hidden; white-space: nowrap; } |
| 221 | 222 | |
| 222 | 223 | #todo { background-image: url('../images/gitlab/dev/todo.png'); padding: 0px 20px 0px 20px; margin: 10px 0px 10px 0px; border: 1px solid #000; } |
| 223 | 224 | /* Swap with line above to hide todo divs |
| … | … | |
| 233 | 233 | #tabmenu a:hover { color: #fff; background: #e52; } |
| 234 | 234 | /*#tabmenu a.active:hover { background: #ABAD85; color: #DEDECF; }*/ |
| 235 | 235 | |
| 236 | | /* the 20px bottom margin is needed for when it's used in the right column */ |
| 237 | | #input { font-family: Monospace; border: 2px solid #dde; background-color: #eef; margin: 0px 0px 20px 0px; padding: 20px; } |
| 236 | #input { font-family: Monospace; border: 2px solid #dde; background-color: #eef; margin: 0px; padding: 10px; } |
| 238 | 237 | #input h2 { font-size: 20px; color: #446; padding: 0px 0px; margin: 0px; } |
| 239 | | #input p { font-size: 16px; color: #446; padding: 0px; margin: 20px 0px 20px 0px; } |
| 238 | #input p { font-size: 16px; color: #446; padding: 0px; margin: 20px 0px 10px 0px; } |
| 240 | 239 | #input label { font-size: 16px; color: #446; padding: 0px; margin: 0px 0px 4px 0px; } |
| 241 | 240 | #input input { font-family: Monospace; color: #333; border: 1px solid #dde; background-color: #fff; padding: 4px 6px 4px 6px; font-size: 16px; height: 20px; margin: 0px; } |
| 242 | 241 | #input select { font-family: Monospace; color: #333; border: 1px solid #dde; background-color: #fff; padding: 4px 2px 4px 2px; font-size: 16px; height: 30px; margin: 0px; } |
| 243 | | #input textarea { font-family: Monospace; color: #333; border: 1px solid #dde; background-color: #fff; padding: 4px 6px 4px 6px; font-size: 16px; width: 100%; margin: 0px; padding: 0px; } |
| 242 | /*FIXME when I set l/r padding the Post Message box runs over right border */ |
| 243 | #input textarea { font-family: Monospace; color: #333; border: 1px solid #dde; background-color: #fff; padding: 4px 0px 4px 0px; font-size: 16px; margin: 0px 0px 0px 0px; width: 100%; } |
| 244 | 244 | #input p.error { font-size: 14px; color: red; border: 1px solid red; background-color: #ccc; } |
| 245 | 245 | #input p.success { font-size: 14px; color: green; border: 1px solid green; background-color: #ccc; } |
| 246 | 246 | table.entry { } |
| … | … | |
| 278 | 278 | |
| 279 | 279 | |
| 280 | 280 | .commit_item { margin: 10px 0px 30px 0px; } |
| 281 | | .commit_message { margin-top: 10px; width: 60%; color: #444; background-color: #f0f0f0; padding: 10px 10px 0px 10px; border: 1px solid #ddd; } |
| 281 | .commit_message { margin-top: 10px; width: 60%; color: #444; background-color: #f0f0f0; padding: 6px 6px 0px 6px; border: 1px solid #ddd; } |
| 282 | 282 | .commit_message p { font-size: 0.9em; line-height: 1.2em; font-family: Monaco, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; padding: 0px; margin: 0px 0px 10px 0px; } |
| 283 | 283 | |
| 284 | 284 | code, pre, tt { font-size: 0.9em; font-family: Monaco, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; } |
| toggle raw diff |
--- a/public/stylesheets/base.css
+++ b/public/stylesheets/base.css
@@ -27,7 +27,7 @@ div.hr { height: 1px; border-top: 1px solid #ccc; margin: 0px 0px 30px 0px; }
div.hr hr {display: none;}
/* Page holds all sections - header, breadcrumb, content, footer */
-#page { text-align: left; margin: 0 auto; min-width: 960px; } /* holds entire page including header */
+#page { text-align: left; margin: 0 auto; min-width: 1010px; } /* holds entire page including header */
/* Header holds the top menu and logo */
#header { display: block; background: #ededed; border-bottom: 1px solid #aaa; padding: 0px; margin: 0px; width: 100%; height: 29px; }
@@ -132,7 +132,7 @@ html>body #content_withrightcolumn {height: auto;}
.formattedtext .screenshot { display: block; }
.formattedtext .screenshot img { border: 1px solid #aaa; display: inline; margin: 0px 10px 0px 0px; }
-.formattedtext .red { color: #ff0000; background-color: #ffe0e0; padding-left: 2px; padding-right: 2px; font-weight: 600; }
+.formattedtext .red { color: #ff0000; background-color: #ffe0e0; padding: 1px 3px 1px 3px; font-weight: 600; }
.formattedtext .small_grey { color: grey; font-size: 0.8em; }
.formattedtext .small { font-size: 0.8em; }
@@ -197,6 +197,8 @@ table.right_default_table td { vertical-align: top; text-align: left; background
table.right_default_table .count { font-size: 0.9em; }
table.right_default_table .function { margin: 10px 0px 0px 0px; background-color: #fff; text-decoration: none; padding: 4px 8px 4px 8px; border: 1px solid #dde; font-weight: 800; }
+table.right_input { border: 0px; width: 100%; margin: 0px 0px 20px 0px; border-spacing: 0px; }
+
/*
table.releasedownload { margin-top: 10px; margin-bottom: 20px; background-color: #fff; border-spacing: 0px; }
table.releasedownload td { vertical-align: top; color: #000; font-size: 1.0em; border: 0px; }
@@ -216,6 +218,7 @@ table.tinyclear td { vertical-align: top; color: #000; border: 0px; padding: 1px
table.public { margin: 0px; background-color: #ddd; border-spacing: 1px; width: 100% }
table.public th { text-align: center; background-color: #eee; color: #000; font-size: 1.0em; padding: 4px; border: 1px solid #fff; font-weight: normal; }
table.public td { vertical-align: top; background-color: #fff; color: #000; font-size: 1.0em; padding: 4px 6px 4px 6px; border: 0px; }
+div.cut { margin: 0; padding: 0; overflow: hidden; white-space: nowrap; }
#todo { background-image: url('../images/gitlab/dev/todo.png'); padding: 0px 20px 0px 20px; margin: 10px 0px 10px 0px; border: 1px solid #000; }
/* Swap with line above to hide todo divs
@@ -230,14 +233,14 @@ table.public td { vertical-align: top; background-color: #fff; color: #000; font
#tabmenu a:hover { color: #fff; background: #e52; }
/*#tabmenu a.active:hover { background: #ABAD85; color: #DEDECF; }*/
-/* the 20px bottom margin is needed for when it's used in the right column */
-#input { font-family: Monospace; border: 2px solid #dde; background-color: #eef; margin: 0px 0px 20px 0px; padding: 20px; }
+#input { font-family: Monospace; border: 2px solid #dde; background-color: #eef; margin: 0px; padding: 10px; }
#input h2 { font-size: 20px; color: #446; padding: 0px 0px; margin: 0px; }
-#input p { font-size: 16px; color: #446; padding: 0px; margin: 20px 0px 20px 0px; }
+#input p { font-size: 16px; color: #446; padding: 0px; margin: 20px 0px 10px 0px; }
#input label { font-size: 16px; color: #446; padding: 0px; margin: 0px 0px 4px 0px; }
#input input { font-family: Monospace; color: #333; border: 1px solid #dde; background-color: #fff; padding: 4px 6px 4px 6px; font-size: 16px; height: 20px; margin: 0px; }
#input select { font-family: Monospace; color: #333; border: 1px solid #dde; background-color: #fff; padding: 4px 2px 4px 2px; font-size: 16px; height: 30px; margin: 0px; }
-#input textarea { font-family: Monospace; color: #333; border: 1px solid #dde; background-color: #fff; padding: 4px 6px 4px 6px; font-size: 16px; width: 100%; margin: 0px; padding: 0px; }
+/*FIXME when I set l/r padding the Post Message box runs over right border */
+#input textarea { font-family: Monospace; color: #333; border: 1px solid #dde; background-color: #fff; padding: 4px 0px 4px 0px; font-size: 16px; margin: 0px 0px 0px 0px; width: 100%; }
#input p.error { font-size: 14px; color: red; border: 1px solid red; background-color: #ccc; }
#input p.success { font-size: 14px; color: green; border: 1px solid green; background-color: #ccc; }
table.entry { }
@@ -275,7 +278,7 @@ Repository Specific Styles
.commit_item { margin: 10px 0px 30px 0px; }
-.commit_message { margin-top: 10px; width: 60%; color: #444; background-color: #f0f0f0; padding: 10px 10px 0px 10px; border: 1px solid #ddd; }
+.commit_message { margin-top: 10px; width: 60%; color: #444; background-color: #f0f0f0; padding: 6px 6px 0px 6px; border: 1px solid #ddd; }
.commit_message p { font-size: 0.9em; line-height: 1.2em; font-family: Monaco, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; padding: 0px; margin: 0px 0px 10px 0px; }
code, pre, tt { font-size: 0.9em; font-family: Monaco, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; } |
| |   |
| 5 | 5 | |
| 6 | 6 | <% fixtures :users, :projects %> |
| 7 | 7 | |
| 8 | 5: |
| 9 | id: 5 |
| 10 | activity: "Public viewers of the messages tab will see a list of all recent messages, chronologically." |
| 11 | audience: :public |
| 12 | project_id: <%= projects(:gitlab) %> |
| 13 | user_id: <%= users(:mtkd) %> |
| 14 | created_at: "2008-05-03 18:07:00" |
| 15 | |
| 8 | 16 | 4: |
| 9 | 17 | id: 4 |
| 10 | | activity: "Test message 4" |
| 18 | activity: "The messages tab, if you are logged in, shows your recent messages, and those of the rest of the team - grouped by person." |
| 11 | 19 | audience: :public |
| 12 | 20 | project_id: <%= projects(:gitlab) %> |
| 13 | 21 | user_id: <%= users(:mtkd) %> |
| … | … | |
| 23 | 23 | |
| 24 | 24 | 3: |
| 25 | 25 | id: 3 |
| 26 | | activity: "Test message 3" |
| 26 | activity: "The blog is mainly aimed at larger posts - aimed at a public audience." |
| 27 | 27 | audience: :public |
| 28 | 28 | project_id: <%= projects(:gitlab) %> |
| 29 | 29 | user_id: <%= users(:mtkd) %> |
| … | … | |
| 31 | 31 | |
| 32 | 32 | 2: |
| 33 | 33 | id: 2 |
| 34 | | activity: "Test message 2" |
| 34 | activity: "Messages are just tweats so you can document, briefly, what you are working on." |
| 35 | 35 | audience: :public |
| 36 | 36 | project_id: <%= projects(:gitlab) %> |
| 37 | 37 | user_id: <%= users(:mtkd) %> |
| … | … | |
| 39 | 39 | |
| 40 | 40 | 1: |
| 41 | 41 | id: 1 |
| 42 | | activity: "Test message 1" |
| 42 | activity: "First message." |
| 43 | 43 | audience: :public |
| 44 | 44 | project_id: <%= projects(:gitlab) %> |
| 45 | 45 | user_id: <%= users(:mtkd) %> |
| toggle raw diff |
--- a/test/fixtures/messages.yml
+++ b/test/fixtures/messages.yml
@@ -5,9 +5,17 @@
<% fixtures :users, :projects %>
+5:
+ id: 5
+ activity: "Public viewers of the messages tab will see a list of all recent messages, chronologically."
+ audience: :public
+ project_id: <%= projects(:gitlab) %>
+ user_id: <%= users(:mtkd) %>
+ created_at: "2008-05-03 18:07:00"
+
4:
id: 4
- activity: "Test message 4"
+ activity: "The messages tab, if you are logged in, shows your recent messages, and those of the rest of the team - grouped by person."
audience: :public
project_id: <%= projects(:gitlab) %>
user_id: <%= users(:mtkd) %>
@@ -15,7 +23,7 @@
3:
id: 3
- activity: "Test message 3"
+ activity: "The blog is mainly aimed at larger posts - aimed at a public audience."
audience: :public
project_id: <%= projects(:gitlab) %>
user_id: <%= users(:mtkd) %>
@@ -23,7 +31,7 @@
2:
id: 2
- activity: "Test message 2"
+ activity: "Messages are just tweats so you can document, briefly, what you are working on."
audience: :public
project_id: <%= projects(:gitlab) %>
user_id: <%= users(:mtkd) %>
@@ -31,7 +39,7 @@
1:
id: 1
- activity: "Test message 1"
+ activity: "First message."
audience: :public
project_id: <%= projects(:gitlab) %>
user_id: <%= users(:mtkd) %> |