-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* release/0.3.14: fix bug with states names #111 public and not public teams #290 fix styling of images Add state to tags #263 fix share buttons on event show Refactor admin index
- Loading branch information
Showing
36 changed files
with
149 additions
and
234 deletions.
There are no files selected for viewing
This file contains 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 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 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 |
---|---|---|
|
@@ -24,7 +24,7 @@ def create | |
|
||
def destroy | ||
@tag = Tag.find params[:id] | ||
@tag.destroy | ||
@tag.remove | ||
head :ok | ||
end | ||
end |
This file contains 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 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 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 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 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 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 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 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 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 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 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 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 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
26 changes: 26 additions & 0 deletions
26
app/views/web/admin/activity_lines/_activity_lines_list.html.haml
This file contains 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
- model_class = ActivityLine | ||
= paginate activity_lines, theme: 'twitter-bootstrap-3' | ||
%table.table.table-condensed.table-hover | ||
%thead | ||
%tr | ||
%th= model_class.human_attribute_name(:title) | ||
%th= model_class.human_attribute_name(:description) | ||
%th= model_class.human_attribute_name(:found_date) | ||
%th= model_class.human_attribute_name(:head) | ||
%th= t 'helpers.links.actions' | ||
%tbody | ||
- activity_lines.each do |activity_line| | ||
%tr.link{ class: state_color(activity_line), data: { href: edit_admin_activity_line_path(activity_line) } } | ||
%td= activity_line.full_title | ||
%td= activity_line.short_body | ||
%td=l activity_line.found_date, format: '%d %b %Y' | ||
%td | ||
- if activity_line.member.present? | ||
= activity_line.member.decorate.short_name | ||
%td.actions | ||
= link_to edit_admin_activity_line_path(activity_line), class: 'btn btn-warning btn-xs' do | ||
%span.glyphicon.glyphicon-pencil | ||
= link_to admin_activity_line_path(activity_line), method: :delete, class: 'btn btn-xs btn-danger' do | ||
%span.glyphicon.glyphicon-remove | ||
%br | ||
= paginate activity_lines, theme: 'twitter-bootstrap-3' |
This file contains 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,32 +1 @@ | ||
= paginate @activity_lines, theme: 'twitter-bootstrap-3' | ||
- model_class = ActivityLine | ||
- title model_class.model_name.human.pluralize(:ru), :admin | ||
.page-header | ||
%h1 | ||
= model_class.model_name.human.pluralize(:ru) | ||
= link_to t('.new', default: t('helpers.links.new')), new_admin_activity_line_path, class: 'btn btn-primary' | ||
%table.table.table-condensed.table-hover | ||
%thead | ||
%tr | ||
%th= model_class.human_attribute_name(:title) | ||
%th= model_class.human_attribute_name(:description) | ||
%th= model_class.human_attribute_name(:found_date) | ||
%th= model_class.human_attribute_name(:head) | ||
%th= t 'helpers.links.actions' | ||
%tbody | ||
- @activity_lines.each do |activity_line| | ||
%tr.link{ class: state_color(activity_line), data: { href: edit_admin_activity_line_path(activity_line) } } | ||
%td= activity_line.full_title | ||
%td= activity_line.short_body | ||
%td=l activity_line.found_date, format: '%d %b %Y' | ||
%td | ||
- if activity_line.member.present? | ||
= activity_line.member.decorate.short_name | ||
%td.actions | ||
= link_to edit_admin_activity_line_path(activity_line), class: 'btn btn-warning btn-xs' do | ||
%span.glyphicon.glyphicon-pencil | ||
= link_to admin_activity_line_path(activity_line), method: :delete, class: 'btn btn-xs btn-danger' do | ||
%span.glyphicon.glyphicon-remove | ||
= link_to t('.new', default: t('helpers.links.new')), new_admin_activity_line_path, class: 'btn btn-primary' | ||
%br | ||
= paginate @activity_lines, theme: 'twitter-bootstrap-3' | ||
= render 'web/admin/default/index', items: @activity_lines |
This file contains 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,16 +1 @@ | ||
- model_class = Article | ||
- tabs = [ :confirmed, :inactive, :unviewed ] | ||
- title model_class.model_name.human.pluralize(:ru), :admin | ||
.page-header | ||
%h1 | ||
=t model_class.model_name.human.pluralize(:ru) | ||
= link_to "#{t 'helpers.links.new'}", new_admin_article_path, class: 'btn btn-primary' | ||
#tabs | ||
%ul.nav.nav-tabs{ role: :tablist } | ||
- tabs.each do |tab| | ||
%li | ||
= link_to tab_title(model_class, tab, @articles[tab].total_count), "##{tab}" | ||
- tabs.each do |tab| | ||
%div{ id: tab } | ||
= render 'articles_list', articles: @articles[tab] | ||
= link_to t('.new', default: t('helpers.links.new')), new_admin_article_path, class: 'btn btn-primary' | ||
= render 'web/admin/default/index', items: @articles |
This file contains 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,16 +1 @@ | ||
- model_class = Banner | ||
- tabs = @banners.keys | ||
- title model_class.model_name.human.pluralize(:ru), :admin | ||
.page-header | ||
%h1 | ||
=t model_class.model_name.human.pluralize(:ru) | ||
= link_to "#{t 'helpers.links.new'}", new_admin_banner_path, class: 'btn btn-primary' | ||
#tabs | ||
%ul.nav.nav-tabs{ role: :tablist } | ||
- tabs.each do |tab| | ||
%li | ||
= link_to tab_title(model_class, tab, @banners[tab].total_count), "##{tab}" | ||
- tabs.each do |tab| | ||
%div{ id: tab } | ||
= render 'banners_list', banners: @banners[tab] | ||
= link_to t('.new', default: t('helpers.links.new')), new_admin_banner_path, class: 'btn btn-primary' | ||
= render 'web/admin/default/index', items: @banners |
This file contains 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,16 +1 @@ | ||
- model_class = Comment | ||
- title model_class.model_name.human.pluralize(:ru), :admin | ||
- tabs = @comments.keys | ||
.page-header | ||
%h1 | ||
= model_class.model_name.human.pluralize(:ru) | ||
= link_to t('.new', default: t('helpers.links.new')), new_admin_comment_path, class: 'btn btn-primary' | ||
#tabs | ||
%ul.nav.nav-tabs{ role: :tablist } | ||
- tabs.each do |tab| | ||
%li | ||
= link_to tab_title(model_class, tab, @comments[tab].total_count), "##{tab}" | ||
- tabs.each do |tab| | ||
%div{ id: tab } | ||
= render 'comments_list', comments: @comments[tab] | ||
= link_to t('.new', default: t('helpers.links.new')), new_admin_comment_path, class: 'btn btn-primary' | ||
= render 'web/admin/default/index', items: @comments |
This file contains 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
- model_class = model_of items | ||
- tabs = items.keys | ||
- title model_class.model_name.human.pluralize(:ru), :admin | ||
.page-header | ||
%h1 | ||
=t model_class.model_name.human.pluralize(:ru) | ||
= link_to "#{t 'helpers.links.new'}", send("new_admin_#{to_path(model_class)}_path"), class: 'btn btn-primary' | ||
#tabs | ||
%ul.nav.nav-tabs{ role: :tablist } | ||
- tabs.each do |tab| | ||
%li | ||
= link_to tab_title(model_class, tab, items[tab].total_count), "##{tab}" | ||
- tabs.each do |tab| | ||
%div{ id: tab } | ||
= render "#{to_path(model_class).pluralize(:en)}_list", to_path(model_class).pluralize(:en).to_sym => items[tab] | ||
= link_to t('.new', default: t('helpers.links.new')), send("new_admin_#{to_path(model_class)}_path"), class: 'btn btn-primary' |
This file contains 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,23 +1 @@ | ||
- model_class = Event | ||
- tabs = [ :future, :unviewed, :current, :past, :declined ] | ||
- title model_class.model_name.human.pluralize(:ru), :admin | ||
.page-header | ||
%h1 | ||
= model_class.model_name.human.pluralize(:ru) | ||
= link_to t('.new', default: t('helpers.links.new')), new_admin_event_path, class: 'btn btn-primary' | ||
#tabs | ||
%ul.nav.nav-tabs{ role: :tablist } | ||
- tabs.each do |tab| | ||
%li | ||
= link_to t("scopes.event.#{tab}"), "##{tab}" | ||
#unviewed | ||
= render 'events_list', events: @unviewed_events | ||
#future | ||
= render 'events_list', events: @future_events | ||
#current | ||
= render 'events_list', events: @current_events | ||
#past | ||
= render 'events_list', events: @past_events | ||
#declined | ||
= render 'events_list', events: @declined_events | ||
= link_to t('.new', default: t('helpers.links.new')), new_admin_event_path, class: 'btn btn-primary' | ||
= render 'web/admin/default/index', items: @events |
This file contains 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,16 +1 @@ | ||
- model_class = Feedback | ||
- title model_class.model_name.human.pluralize(:ru), :admin | ||
- tabs = [ :unviewed, :fixing, :done, :declined ] | ||
.page-header | ||
%h1 | ||
= model_class.model_name.human.pluralize(:ru) | ||
= link_to t('.new', default: t('helpers.links.new')), new_admin_feedback_path, class: 'btn btn-primary' | ||
#tabs | ||
%ul.nav.nav-tabs{ role: :tablist } | ||
- tabs.each do |tab| | ||
%li | ||
= link_to tab_title(model_class, tab, @feedback[tab].total_count), "##{tab}" | ||
- tabs.each do |tab| | ||
%div{ id: tab } | ||
= render 'feedback_list', feedback: @feedback[tab] | ||
= link_to t('.new', default: t('helpers.links.new')), new_admin_feedback_path, class: 'btn btn-primary' | ||
= render 'web/admin/default/index', items: @feedback |
Oops, something went wrong.