-
Notifications
You must be signed in to change notification settings - Fork 777
AO3-7404 Enhancements to works New Comment page #5743
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
bre-nana
wants to merge
15
commits into
otwcode:master
Choose a base branch
from
bre-nana:AO3-7404
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+38
−18
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
20ebfdf
AO3-7404 Adjust new comment page testing scenario
bre-nana 65bdbf7
AO3-7404 Add test for reading comments page for a work
bre-nana c8fc53d
AO3-7404 Use comments title helper for new page and add translations
bre-nana e3a35c4
AO3-7404 Remove back button
bre-nana ad38151
AO3-7404 Add translation for comment button
bre-nana 601b451
AO3-7404 Use standardised key names for headers
bre-nana 9716803
Merge branch 'master' into AO3-7404
bre-nana b37d7c3
AO3-7404 Separate title helpers for different comment pages
bre-nana 2723281
AO3-7404 Use Cucumber expressions over regex for step name
bre-nana 6c647fe
AO3-7404 Use the return of the conditional for variable assignment
bre-nana 52f9d33
AO3-7404 Use the new hash syntax for comment form
bre-nana 85d6386
AO3-7404 Fix syntax issues
bre-nana d2d7dba
AO3-7404 fix formatting from PR feedback
bre-nana 41c4211
AO3-7404 use descriptive link variable name
bre-nana adef561
AO3-7404 move translations into correct yml
bre-nana File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,12 @@ | ||
| <!--Descriptive page name, messages and instructions--> | ||
| <h2 class="heading"><%= ts("New comment on %{name}", :name => @name) %></h2> | ||
| <h2 class="heading"><%= title_for_new_comment_page(@commentable) %></h2> | ||
| <%= error_messages_for :comment %> | ||
| <!--/descriptions--> | ||
|
|
||
| <!--main content--> | ||
| <%= render :partial => 'comments/comment_form', :locals => { | ||
| :comment => @comment, | ||
| :commentable => @commentable, | ||
| :button_name => ts("Comment") | ||
| } | ||
| %> | ||
| <%= render partial: "comments/comment_form", locals: { | ||
| comment: @comment, | ||
| commentable: @commentable, | ||
| button_name: t(".actions.comment") | ||
| } %> | ||
| <!--/content--> | ||
|
|
||
| <!--subnav--> | ||
| <p class="navigation actions" role="navigation"><!--TODO: INVESTIGATE this baffling link--><%= link_to ts("Back"), @commentable.is_a?(Tag) ? tag_path(@commentable) : polymorphic_path(@commentable) %></p> | ||
| <!--/subnav--> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also just a nitpick since i'm already requesting other changes, but the empty lines after scenario descriptions aren't needed, so you can remove them in these two tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! fixed on d2d7dba