-
Notifications
You must be signed in to change notification settings - Fork 47
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
65 generowanie listy komentarzy #405
base: master
Are you sure you want to change the base?
Changes from all commits
88517ca
8cd3d12
59a8689
cce4bbd
34b8400
8353c6d
27df3b4
54b3a38
d0a1fd4
1afb035
5da5ef3
4c4b7e1
80a808b
3defa38
200a11b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,6 +58,7 @@ def update | |
|
||
def show | ||
@issue = Issue.find_by_volume(params[:id]) | ||
@article_revisions = ArticleRevision.joins(:submission).where(submissions: { issue: id }) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choć mam spore wątpliwości odnośnie tego czy to jest potrzebne. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To powinno być w osobnej akcji |
||
end | ||
|
||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.scroll-panel-header | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Proszę to przenieść do pliku |
||
%h3.scroll-panel-title Komentarze do numeru | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Niepoprawne wcięcie - 2 spacje powinny być. |
||
.scroll-panel-body | ||
%table.table.table-hover.table-admin | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Lepiej byłoby wyświetlić to w postaci listy (np. |
||
%thead | ||
%tr | ||
%th Numer | ||
%th Artykuł | ||
%th Wersja | ||
%th Komentarz | ||
%tbody | ||
- @article_revisions.each do |revision| | ||
%tr | ||
%td= @issue_id | ||
%td= revision.submission.title | ||
%td= revision.version | ||
%td= revision.comment |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,10 +14,12 @@ | |
= link_to "Edytuj", edit_issue_path(@issue), class: %w{btn btn-primary btn-sm} | ||
= link_to "Pokaż recenzje", show_reviews_issue_path(@issue), class: %w{btn btn-default btn-sm} | ||
= link_to "Pokaż recenzentów", show_reviewers_issue_path(@issue), class: %w{btn btn-default btn-sm} | ||
= link_to "Komentarze do numeru", article_revisions_path(issue_id: @issue.id), class: %w{btn btn-default btn-sm pull-right} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Jw. tzn. |
||
|
||
.scroll-panel-body | ||
|
||
%h3 Zgłoszone artykuły | ||
%table.table.table-hover.table-admin | ||
%table.table.table-hover.table-admin | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Należy usunąć tę spację. |
||
%thead | ||
%tr | ||
%th Tytuł | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -280,6 +280,14 @@ | |
expect(page).to have_content("nie może być puste") | ||
end | ||
|
||
|
||
scenario "sortowanie zgłoszeń względem daty nadesłania" do | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, ten test nie ma sensu w tym kontekście |
||
visit "/submissions" | ||
click_on("Data nadesłania") | ||
expect(page).to have_content(/11-01-2016.*19-01-2016/) | ||
click_on("Data nadesłania") | ||
expect(page).to have_content(/19-01-2016.*11-01-2016/) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. brakuje |
||
|
||
scenario "wysłanie maila z umową" do | ||
visit '/submissions' | ||
clear_emails | ||
|
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.
Te zmiany nie mają uzasadnienia.