Skip to content
This repository was archived by the owner on May 11, 2021. It is now read-only.

Commit 3d5f83b

Browse files
authored
v0.2.1
Merge pull request #4 from TechforgoodCAST/dev
2 parents 98d496b + 462e867 commit 3d5f83b

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

app/views/comments/new.html.erb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,12 @@
3030
<%= render '/comments/list', commentable: @commentable %>
3131
</div>
3232

33+
<div class="notice mb30">
34+
<strong>Please note:</strong> Subject to availability, advisors aim to respond to support requests within 1-2 working days, and that messages posted here are public. If you have additional questions please contact <%= mail_to 'hello@wearecast.org.uk', 'hello@wearecast.org.uk'%>.
35+
</div>
36+
3337
<%= simple_form_for @comment, url: new_comment_path(@commentable) do |f| %>
34-
<h3 class="bold mb20">Add comment</h3>
38+
<h3 class="bold mb20">Ask for help</h3>
3539

3640
<%= f.hidden_field :done, value: params[:done] %>
3741
<div class="mb20"><%= f.input :author %></div>
@@ -55,8 +59,4 @@
5559
<%= f.button :submit, 'Comment' %>
5660
<% end %>
5761
<% end %>
58-
59-
<div class="notice mb30">
60-
<strong>Please note:</strong> Subject to availability, advisors aim to respond to support requests within 1-2 working days, and that messages posted here are public. If you have additional questions please contact <%= mail_to 'hello@wearecast.org.uk', 'hello@wearecast.org.uk'%>.
61-
</div>
6262
</div>

app/views/playbacks/show.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<%= render '/comments/list', commentable: section %>
2727
</div>
2828
<div class="center">
29-
<%= link_to 'Add comment', new_comment_path(section), class: 'btn' %>
29+
<%= link_to 'Ask for help', new_comment_path(section), class: 'btn' %>
3030
</div>
3131
</div>
3232
<%= render('section', insights: section.insights) %>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class RemoveForeignKeyFromCommentsSteps < ActiveRecord::Migration[5.2]
2+
def change
3+
remove_foreign_key :comments, :steps
4+
end
5+
end

db/schema.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
# It's strongly recommended that you check this file into your version control system.
1212

13-
ActiveRecord::Schema.define(version: 2018_11_26_132555) do
13+
ActiveRecord::Schema.define(version: 2018_11_27_160118) do
1414

1515
# These are extensions that must be enabled in order to support this database
1616
enable_extension "plpgsql"
@@ -86,7 +86,6 @@
8686
t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
8787
end
8888

89-
add_foreign_key "comments", "steps", column: "commentable_id"
9089
add_foreign_key "insights", "sections"
9190
add_foreign_key "sections", "playbacks"
9291
add_foreign_key "steps", "insights"

0 commit comments

Comments
 (0)