Skip to content
Browse files

Its a html_safe world...

  • Loading branch information...
1 parent f68c3b0 commit 4a69646175a57c5d76c36ae03112a2977baa16d8 @jamesu committed Oct 5, 2011
View
2 app/views/dashboard/_index_sidebar.html.erb
@@ -29,7 +29,7 @@
<li><%= link_to h(project.name), project_path(:id => project.id) %></li>
<% end %>
</ul>
- <p><%= link_to t('my_projects_sidebar_link'), :controller => 'dashboard', :action => 'my_projects' %></p>
+ <p><%= link_to t('my_projects_sidebar_link').html_safe, :controller => 'dashboard', :action => 'my_projects' %></p>
</div>
</div>
<% end %>
View
4 app/views/files/index.html.erb
@@ -41,10 +41,10 @@
<% if !last_revision.created_by.nil? %>
<%= t('revision_created_by', :number => last_revision.revision_number,
:user => "<a href=\"#{last_revision.created_by.object_url}\">#{h last_revision.created_by.display_name}</a>",
- :date => format_usertime(last_revision.created_on, :revision_date_format_short)) %>
+ :date => format_usertime(last_revision.created_on, :revision_date_format_short)).html_safe %>
<% else %>
<%= t('revision_created_by', :number => last_revision.revision_number,
- :date => format_usertime(last_revision.created_on, :revision_date_format_short)) %>
+ :date => format_usertime(last_revision.created_on, :revision_date_format_short)).html_safe %>
<% end %>
</div>
<% end %>
View
8 app/views/files/show.html.erb
@@ -29,10 +29,10 @@
<% if !@last_revision.created_by.nil? %>
<%= t('revision_created_by', :number => @last_revision.revision_number,
:user => "<a href=\"#{@last_revision.created_by.object_url}\">#{h @last_revision.created_by.display_name}</a>",
- :date => format_usertime(@last_revision.created_on, :revision_date_format_short)) %>
+ :date => format_usertime(@last_revision.created_on, :revision_date_format_short)).html_safe %>
<% else %>
<%= t('revision_created_by', :number => @last_revision.revision_number,
- :date => format_usertime(@last_revision.created_on, :revision_date_format_short)) %>
+ :date => format_usertime(@last_revision.created_on, :revision_date_format_short)).html_safe %>
<% end %>
</div>
<% end %>
@@ -53,10 +53,10 @@
<% if !revision.created_by.nil? %>
<%= t('revision_created_by', :number => revision.revision_number,
:user => "<a href=\"#{revision.created_by.object_url}\">#{h revision.created_by.display_name}</a>",
- :date => format_usertime(revision.created_on, :revision_date_format)) %>
+ :date => format_usertime(revision.created_on, :revision_date_format)).html_safe %>
<% else %>
<%= t('revision_created_by', :number => revision.revision_number,
- :date => format_usertime(revision.created_on, :revision_date_format)) %>
+ :date => format_usertime(revision.created_on, :revision_date_format)).html_safe %>
<% end %>
</div>
<% if !revision.comment.empty? %>
View
2 app/views/messages/_view_sidebar.html.erb
@@ -46,7 +46,7 @@
</div>
</div>
<button class="submit" type="submit"><%= t('update_options') %></button>
- <p><%= link_to t('edit_message_sidebar_link'), edit_message_path(:id => @message.id) %></p>
+ <p><%= link_to t('edit_message_sidebar_link').html_safe, edit_message_path(:id => @message.id) %></p>
</form>
</div>
</div>
View
2 app/views/tasks/_form.html.erb
@@ -10,7 +10,7 @@
<div>
<label for="addTaskText<%= task.id %>"><%= t('text') %>: <span class="label_required">*</span></label>
- <%= text_area 'task', 'text', :id => "addTaskText#{task.id}", :class => 'short', :rows => 10, :cols => 40 %>
+ <%= text_area 'task', 'text', :id => "addTaskText#{task.id}", :class => 'short autofocus', :rows => 10, :cols => 40 %>
</div>
<div>
<label for="taskAssignedTo<%= task.id %>"><%= t('assign_to') %>:</label>

0 comments on commit 4a69646

Please sign in to comment.
Something went wrong with that request. Please try again.