---
app/views/projects/_details.html.erb | 50 +++++++++++++++++-----------------
app/views/projects/index.html.erb | 2 +-
app/views/projects/show.html.erb | 2 +-
3 files changed, 27 insertions(+), 27 deletions(-)
diff --git a/app/views/projects/_details.html.erb b/app/views/projects/_details.html.erb
index 4cba562..7db053c 100644
--- a/app/views/projects/_details.html.erb
+++ b/app/views/projects/_details.html.erb
@@ -1,30 +1,30 @@
-<table class="detail">
+<table class="detail">
<colgroup>
<col class="label" />
<col class="value" />
</colgroup>
- <thead>
- <tr>
- <th class="title" colspan="2"><%= "Details For
#{(a)project.name}" %></th>
- </tr>
- </thead>
-
- <tbody>
- <tr>
- <td class="label">Owner:</td>
- <td class="value"><%= link_to @project.owner.display_name,
user_path((a)project.owner) %></td>
- </tr>
-
- <tr>
- <td class="label">Homepage:</td>
- <td class="value"><%= link_to_homepage @project %>
- </tr>
-
- <tr>
- <td class="text" colspan="2">
- <%= simple_format @project.description %>
- </td>
- </tr>
- </tbody>
-</table>
+ <thead>
+ <tr>
+ <th class="title" colspan="2"><%= "Details For
#{(a)project.name}" %></th>
+ </tr>
+ </thead>
+
+ <tbody>
+ <tr>
+ <td class="label">Owner:</td>
+ <td class="value"><%= link_to @project.owner.display_name,
user_path((a)project.owner) %></td>
+ </tr>
+
+ <tr>
+ <td class="label">Homepage:</td>
+ <td class="value"><%= link_to_homepage @project %>
+ </tr>
+
+ <tr>
+ <td class="text" colspan="2">
+ <%= RedCloth.new((a)project.description).to_html %>
+ </td>
+ </tr>
+ </tbody>
+</table>
diff --git a/app/views/projects/index.html.erb b/app/views/projects/index.html.erb
index 828abb3..5f196a4 100644
--- a/app/views/projects/index.html.erb
+++ b/app/views/projects/index.html.erb
@@ -52,7 +52,7 @@
<%= project.name %>
<%= project.approved ? "" : " (Pending)" %>
</td>
- <td><%= get_first_sentence project.description %></td>
+ <td><%= RedCloth.new(get_first_sentence(project.description)).to_html
%></td>
<td><%= link_to project.owner.display_name, user_path(project.owner)
%></td>
<td><%= show_date(project.created_at) %></td>
<td>
diff --git a/app/views/projects/show.html.erb b/app/views/projects/show.html.erb
index 8308d80..01e65d4 100644
--- a/app/views/projects/show.html.erb
+++ b/app/views/projects/show.html.erb
@@ -35,7 +35,7 @@
<tr>
<td class="text" colspan="2">
- <%= simple_format @project.description %>
+ <%= RedCloth.new((a)project.description).to_html %>
</td>
</tr>
</tbody>
--
1.6.0.6