nippo_core 0.3.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/nippo_core/groups_controller.rb +17 -1
- data/app/controllers/nippo_core/reports_controller.rb +14 -0
- data/app/policies/nippo_core/group_policy.rb +18 -0
- data/app/policies/nippo_core/report_policy.rb +11 -2
- data/app/views/kaminari/_first_page.slim +3 -0
- data/app/views/kaminari/_gap.slim +2 -0
- data/app/views/kaminari/_last_page.slim +3 -0
- data/app/views/kaminari/_next_page.slim +3 -0
- data/app/views/kaminari/_page.slim +3 -0
- data/app/views/kaminari/_paginator.slim +13 -0
- data/app/views/kaminari/_prev_page.slim +3 -0
- data/app/views/layouts/nippo_core/application.slim +18 -6
- data/app/views/nippo_core/application/_link_to_join.slim +2 -2
- data/app/views/nippo_core/group_member_relations/new.slim +1 -0
- data/app/views/nippo_core/group_member_relations/unaccepted.slim +1 -0
- data/app/views/nippo_core/groups/_form.slim +9 -0
- data/app/views/nippo_core/groups/edit.js.erb +1 -0
- data/app/views/nippo_core/groups/index.slim +5 -3
- data/app/views/nippo_core/groups/new.slim +2 -9
- data/app/views/nippo_core/groups/request_join.js.erb +1 -1
- data/app/views/nippo_core/groups/show.slim +45 -37
- data/app/views/nippo_core/home/index.slim +1 -0
- data/app/views/nippo_core/reports/_form.slim +6 -0
- data/app/views/nippo_core/reports/edit.js.erb +1 -0
- data/app/views/nippo_core/reports/index.slim +1 -0
- data/app/views/nippo_core/reports/new.slim +9 -10
- data/app/views/nippo_core/reports/show.slim +7 -3
- data/app/views/nippo_core/users/registrations/edit.slim +14 -13
- data/app/views/nippo_core/users/show.slim +2 -0
- data/config/breadcrumbs.rb +53 -0
- data/config/locales/en.yml +8 -0
- data/config/locales/ja.yml +7 -0
- data/config/routes.rb +2 -2
- data/lib/nippo_core/engine.rb +2 -0
- data/lib/nippo_core/version.rb +1 -1
- metadata +44 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6c7b0a762d8b7bc2f308623389c1ca2289a6fa6
|
4
|
+
data.tar.gz: 7f6bbf9f8a68ae949f6f24ba48610552d17fe485
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65e1ca2debede9ddcd2d1c80716956d480381b789008ce24f390ca3d8ede46cf66eaed5feae4fd10b4ea594bca1e36b255e180e006acf14b814580b2ee083d06
|
7
|
+
data.tar.gz: bd5ea4a7e234b32837824512711a2c47cd8e39fb96536b2d8ab90deedecad608d54c879ed845988e7e84b23afe628457d876e866262fb8c5fc59791a1fd36040
|
@@ -1,7 +1,9 @@
|
|
1
1
|
module NippoCore
|
2
2
|
class GroupsController < ApplicationController
|
3
|
+
include Pundit
|
4
|
+
|
3
5
|
before_action :initialize_group, only: [:new, :create]
|
4
|
-
before_action :find_group,
|
6
|
+
before_action :find_group, except: [:index, :new]
|
5
7
|
|
6
8
|
def index
|
7
9
|
@groups = NippoCore::Group.order(created_at: :desc).page(params[:page]).per(10)
|
@@ -25,6 +27,20 @@ module NippoCore
|
|
25
27
|
end
|
26
28
|
end
|
27
29
|
|
30
|
+
def edit
|
31
|
+
authorize @group
|
32
|
+
render layout: nil
|
33
|
+
end
|
34
|
+
|
35
|
+
def update
|
36
|
+
authorize @group
|
37
|
+
if @group.update(group_params)
|
38
|
+
redirect_to @group
|
39
|
+
else
|
40
|
+
head 400
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
28
44
|
def request_join
|
29
45
|
result = current_user.send_request(@group)
|
30
46
|
render layout: nil
|
@@ -27,6 +27,20 @@ module NippoCore
|
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
|
+
def edit
|
31
|
+
authorize @report
|
32
|
+
render layout: nil
|
33
|
+
end
|
34
|
+
|
35
|
+
def update
|
36
|
+
authorize @report
|
37
|
+
if @report.update(report_params)
|
38
|
+
redirect_to [@group, @report]
|
39
|
+
else
|
40
|
+
head 400
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
30
44
|
private
|
31
45
|
def initialize_report
|
32
46
|
# TODO: selectable reported_at
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module NippoCore
|
2
|
+
class GroupPolicy < ApplicationPolicy
|
3
|
+
attr_reader :user, :group
|
4
|
+
|
5
|
+
def initialize(user, group)
|
6
|
+
@user = user
|
7
|
+
@group = group
|
8
|
+
end
|
9
|
+
|
10
|
+
def edit?
|
11
|
+
@group.member?(user)
|
12
|
+
end
|
13
|
+
|
14
|
+
def update?
|
15
|
+
@group.member?(user)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -1,10 +1,11 @@
|
|
1
1
|
module NippoCore
|
2
2
|
class ReportPolicy < ApplicationPolicy
|
3
|
-
attr_reader :user, :group
|
3
|
+
attr_reader :user, :group, :report
|
4
4
|
|
5
5
|
def initialize(user, report)
|
6
6
|
@user = user
|
7
|
-
@
|
7
|
+
@report = report
|
8
|
+
@group = @report.group
|
8
9
|
end
|
9
10
|
|
10
11
|
# TODO: remove
|
@@ -23,5 +24,13 @@ module NippoCore
|
|
23
24
|
def create?
|
24
25
|
@group.member?(user)
|
25
26
|
end
|
27
|
+
|
28
|
+
def edit?
|
29
|
+
@report.user_id == @user.id
|
30
|
+
end
|
31
|
+
|
32
|
+
def update?
|
33
|
+
@report.user_id == @user.id
|
34
|
+
end
|
26
35
|
end
|
27
36
|
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
= paginator.render do
|
2
|
+
ul.pagination
|
3
|
+
== first_page_tag unless current_page.first?
|
4
|
+
== prev_page_tag unless current_page.first?
|
5
|
+
|
6
|
+
- each_page do |page|
|
7
|
+
- if page.left_outer? || page.right_outer? || page.inside_window?
|
8
|
+
== page_tag page
|
9
|
+
- elsif !page.was_truncated?
|
10
|
+
== gap_tag
|
11
|
+
|
12
|
+
== next_page_tag unless current_page.last?
|
13
|
+
== last_page_tag unless current_page.last?
|
@@ -1,8 +1,21 @@
|
|
1
1
|
doctype html
|
2
2
|
html
|
3
3
|
head
|
4
|
-
|
5
|
-
|
4
|
+
ruby:
|
5
|
+
metas_hash = {
|
6
|
+
title: 'Nippo',
|
7
|
+
description: 'This is a web application you share and stock daily reports with your teams.',
|
8
|
+
og: {
|
9
|
+
title: 'Nippo',
|
10
|
+
description: 'This is a web application you share and stock daily reports with your teams.'
|
11
|
+
},
|
12
|
+
twitter: {
|
13
|
+
card: 'summary',
|
14
|
+
title: 'Nippo',
|
15
|
+
description: 'This is a web application you share and stock daily reports with your teams.'
|
16
|
+
}
|
17
|
+
}
|
18
|
+
= display_meta_tags metas_hash
|
6
19
|
/ = stylesheet_link_tag "nippo_core/application", media: "all"
|
7
20
|
link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"
|
8
21
|
link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous"
|
@@ -17,12 +30,10 @@ html
|
|
17
30
|
header.navbar.navbar-default.navbar-fixed-top
|
18
31
|
.container
|
19
32
|
.navbar-header
|
20
|
-
|
21
|
-
= t('daily report')
|
33
|
+
= link_to t('daily report'), root_path, class: 'navbar-brand'
|
22
34
|
nav.nav.navbar-nav.navbar-right
|
23
35
|
- if user_signed_in?
|
24
|
-
.navbar-text
|
25
|
-
= current_user.nickname
|
36
|
+
= link_to current_user.nickname, users_path, class: 'navbar-text'
|
26
37
|
ul.nav.navbar-nav
|
27
38
|
- if user_signed_in?
|
28
39
|
li
|
@@ -33,4 +44,5 @@ html
|
|
33
44
|
li
|
34
45
|
= link_to t('sign up'), new_user_registration_path
|
35
46
|
.container
|
47
|
+
== breadcrumbs style: :bootstrap
|
36
48
|
= yield
|
@@ -1,4 +1,4 @@
|
|
1
1
|
- if current_user.request_to?(group)
|
2
|
-
= link_to 'Requesting...', '#'
|
2
|
+
= link_to 'Requesting...', '#', class: 'btn btn-warning'
|
3
3
|
- else
|
4
|
-
= link_to 'Join us!', group_request_join_path(group), method: :post, remote: true, id: "link-to-join-group_#{group.id}"
|
4
|
+
= link_to 'Join us!', group_request_join_path(group), method: :post, remote: true, id: "link-to-join-group_#{group.id}", class: 'btn btn-info'
|
@@ -0,0 +1,9 @@
|
|
1
|
+
= form_for group do |f|
|
2
|
+
.form-group
|
3
|
+
= f.label :name
|
4
|
+
= f.text_field :name, placeholder: 'グループ名 (必須)', class: 'form-control'
|
5
|
+
.form-group
|
6
|
+
= f.label :description
|
7
|
+
= f.text_area :description, placeholder: '説明', class: 'form-control'
|
8
|
+
button.btn.btn-default
|
9
|
+
= group.persisted? ? 'Update Group' : 'Create Group'
|
@@ -0,0 +1 @@
|
|
1
|
+
$("#group-content-area").html('<%= j render 'form', group: @group %>');
|
@@ -1,12 +1,14 @@
|
|
1
|
+
- breadcrumb :groups
|
1
2
|
h1
|
2
3
|
| Group index
|
3
4
|
ul.list-group
|
4
5
|
- @groups.each do |group|
|
5
6
|
li.list-group-item
|
6
|
-
=
|
7
|
-
|
7
|
+
div style="display: flex; justify-content: space-between; align-items: center"
|
8
|
+
= link_to group.name, group
|
8
9
|
- if group.member?(current_user)
|
9
|
-
|
10
|
+
.btn.btn-success
|
11
|
+
| Member
|
10
12
|
- else
|
11
13
|
= render 'link_to_join', group: group
|
12
14
|
= paginate @groups
|
@@ -1,9 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
= f.label :name
|
4
|
-
= f.text_field :name, placeholder: 'グループ名 (必須)', class: 'form-control'
|
5
|
-
.form-group
|
6
|
-
= f.label :description
|
7
|
-
= f.text_area :description, placeholder: '説明', class: 'form-control'
|
8
|
-
button.btn.btn-default
|
9
|
-
| Create Group
|
1
|
+
- breadcrumb :new_group
|
2
|
+
= render 'form', group: @group
|
@@ -1,2 +1,2 @@
|
|
1
1
|
let $link = $("#link-to-join-group_<%= @group.id %>");
|
2
|
-
$link.attr("href", "#").text("Requesting...");
|
2
|
+
$link.attr("href", "#").text("Requesting...").attr("class", "btn btn-warning");
|
@@ -1,40 +1,48 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
- @members.each do |m|
|
12
|
-
li
|
13
|
-
= m.nickname
|
14
|
-
section
|
15
|
-
- if @group.member?(current_user)
|
1
|
+
- breadcrumb :group, @group
|
2
|
+
#group-area.panel.panel-default
|
3
|
+
.panel-heading
|
4
|
+
div style="display: flex; justify-content: space-between; align-items: center"
|
5
|
+
h1.panel-title
|
6
|
+
| Group name:
|
7
|
+
= @group.name
|
8
|
+
- if policy(@group).edit?
|
9
|
+
= link_to 'edit', edit_group_path(@group), remote: true, class: 'btn btn-default'
|
10
|
+
.panel-body#group-content-area
|
16
11
|
section
|
17
12
|
h2
|
18
|
-
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
13
|
+
| Introduction
|
14
|
+
= simple_format @group.description
|
15
|
+
section
|
16
|
+
h3
|
17
|
+
| Member
|
18
|
+
ul.list-group
|
19
|
+
- @members.each do |m|
|
20
|
+
li.list-group-item
|
21
|
+
= m.nickname
|
26
22
|
section
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
23
|
+
- if @group.member?(current_user)
|
24
|
+
section
|
25
|
+
h2
|
26
|
+
| recently activity
|
27
|
+
ul.list-group
|
28
|
+
- @reports.each do |report|
|
29
|
+
li.list-group-item
|
30
|
+
= link_to report.title, [@group, report]
|
31
|
+
.btn-group
|
32
|
+
= link_to 'more', group_reports_path(group_id: @group.id), class: 'btn btn-link'
|
33
|
+
= link_to 'new report', new_group_report_path(group_id: @group.id), class: 'btn btn-link'
|
34
|
+
section
|
35
|
+
h2
|
36
|
+
| requests
|
37
|
+
ul.list-group
|
38
|
+
- @requests.each do |request|
|
39
|
+
li.list-group-item id="request_#{request.id}"
|
40
|
+
= request.user.nickname
|
41
|
+
|
|
42
|
+
= link_to 'accept', group_member_relation_accept_path(group_member_relation_id: request.id), method: :post, remote: true, id: "link-to-accept-request_#{request.id}"
|
43
|
+
= link_to 'more', unaccepted_group_group_member_relations_path(group_id: @group.id), class: 'btn btn-link'
|
44
|
+
= link_to 'invite_member', new_group_group_member_relation_path(group_id: @group.id), class: 'btn btn-link'
|
45
|
+
- else
|
46
|
+
h2
|
47
|
+
| Join us?
|
48
|
+
= render 'link_to_join', group: @group, class: 'btn btn-link'
|
@@ -0,0 +1 @@
|
|
1
|
+
$("#report-area").html('<%= j render 'form', report: @report %>');
|
@@ -1,10 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
=
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
| Create Report
|
1
|
+
- breadcrumb :new_group_report, @group
|
2
|
+
.panel.panel-default
|
3
|
+
.panel-heading
|
4
|
+
h1.panel-title
|
5
|
+
= Date.today
|
6
|
+
|
|
7
|
+
= current_user.nickname
|
8
|
+
.panel-body
|
9
|
+
= render 'form', report: @report
|
@@ -1,6 +1,10 @@
|
|
1
|
+
- breadcrumb :group_report, @report
|
1
2
|
.panel.panel-default
|
2
3
|
.panel-heading
|
3
|
-
|
4
|
-
|
5
|
-
|
4
|
+
div style="display: flex; justify-content: space-between; align-items: center"
|
5
|
+
h2.panel-title
|
6
|
+
= @report.title
|
7
|
+
- if policy(@report).edit?
|
8
|
+
= link_to 'edit', edit_group_report_path(@report, group_id: @group.id), remote: true, class: 'btn btn-default'
|
9
|
+
div.panel-body#report-area
|
6
10
|
== @report.markdowned_body
|
@@ -1,42 +1,43 @@
|
|
1
|
+
- breadcrumb :edit_user
|
1
2
|
h2
|
2
3
|
| Edit
|
3
4
|
= resource_name.to_s.humanize
|
4
|
-
= form_for
|
5
|
+
= form_for resource, as: resource_name, url: registration_path(resource_name), html: { method: :put } do |f|
|
5
6
|
= devise_error_messages!
|
6
|
-
.
|
7
|
+
.form-group
|
7
8
|
= f.label :email
|
8
9
|
br
|
9
|
-
= f.email_field :email, autofocus: true
|
10
|
+
= f.email_field :email, autofocus: true, class: 'form-control'
|
10
11
|
- if devise_mapping.confirmable? && resource.pending_reconfirmation?
|
11
12
|
div
|
12
13
|
| Currently waiting confirmation for:
|
13
14
|
= resource.unconfirmed_email
|
14
|
-
.
|
15
|
+
.form-group
|
15
16
|
= f.label :password
|
16
17
|
i
|
17
18
|
| (leave blank if you don't want to change it)
|
18
19
|
br
|
19
|
-
= f.password_field :password, autocomplete: "off"
|
20
|
+
= f.password_field :password, autocomplete: "off", class: 'form-control'
|
20
21
|
- if @minimum_password_length
|
21
22
|
br
|
22
23
|
em
|
23
24
|
= @minimum_password_length
|
24
25
|
| characters minimum
|
25
|
-
.
|
26
|
+
.form-group
|
26
27
|
= f.label :password_confirmation
|
27
28
|
br
|
28
|
-
= f.password_field :password_confirmation, autocomplete: "off"
|
29
|
-
.
|
29
|
+
= f.password_field :password_confirmation, autocomplete: "off", class: 'form-control'
|
30
|
+
.form-group
|
30
31
|
= f.label :current_password
|
31
32
|
i
|
32
33
|
| (we need your current password to confirm your changes)
|
33
34
|
br
|
34
|
-
= f.password_field :current_password, autocomplete: "off"
|
35
|
+
= f.password_field :current_password, autocomplete: "off", class: 'form-control'
|
35
36
|
.actions
|
36
|
-
|
37
|
-
|
37
|
+
button.btn.btn-default
|
38
|
+
| Update
|
39
|
+
/ h3
|
38
40
|
| Cancel my account
|
39
|
-
p
|
41
|
+
/ p
|
40
42
|
| Unhappy?
|
41
43
|
= button_to "Cancel my account", registration_path(resource_name), data: { confirm: "Are you sure?" }, method: :delete
|
42
|
-
= link_to "Back", :back
|
@@ -0,0 +1,53 @@
|
|
1
|
+
crumb :root do
|
2
|
+
link "Home", root_path
|
3
|
+
end
|
4
|
+
|
5
|
+
crumb :user do
|
6
|
+
link 'user profile', users_path
|
7
|
+
parent :root
|
8
|
+
end
|
9
|
+
|
10
|
+
crumb :edit_user do
|
11
|
+
link 'edit user profile', edit_user_registration_path
|
12
|
+
parent :user
|
13
|
+
end
|
14
|
+
|
15
|
+
crumb :new_group do
|
16
|
+
link 'new group', new_group_path
|
17
|
+
parent :root
|
18
|
+
end
|
19
|
+
|
20
|
+
crumb :groups do
|
21
|
+
link 'groups index', groups_path
|
22
|
+
parent :root
|
23
|
+
end
|
24
|
+
|
25
|
+
crumb :group do |group|
|
26
|
+
link group.name, group
|
27
|
+
parent :groups
|
28
|
+
end
|
29
|
+
|
30
|
+
crumb :group_reports do |group|
|
31
|
+
link 'reports', [group, :reports]
|
32
|
+
parent :group, group
|
33
|
+
end
|
34
|
+
|
35
|
+
crumb :group_report do |report|
|
36
|
+
link report.title, [report.group, report]
|
37
|
+
parent :group_reports, report.group
|
38
|
+
end
|
39
|
+
|
40
|
+
crumb :new_group_report do |group|
|
41
|
+
link 'new report', new_group_report_path(group_id: group)
|
42
|
+
parent :group_reports, group
|
43
|
+
end
|
44
|
+
|
45
|
+
crumb :group_group_member_relations do |group|
|
46
|
+
link 'unaccepted requests', [group, :group_member_relations]
|
47
|
+
parent :group, group
|
48
|
+
end
|
49
|
+
|
50
|
+
crumb :new_group_group_member_relation do |group|
|
51
|
+
link 'invite user', new_group_group_member_relation_path(group_id: group.id)
|
52
|
+
parent :group, group
|
53
|
+
end
|
data/config/locales/ja.yml
CHANGED
data/config/routes.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
NippoCore::Engine.routes.draw do
|
2
2
|
devise_for :users, class_name: "NippoCore::User", module: :'nippo_core/users'
|
3
3
|
resource :users, path: :user, only: :show
|
4
|
-
resources :groups, except: [:
|
4
|
+
resources :groups, except: [:destroy] do
|
5
5
|
# resources :users, module: :groups, only: [] do
|
6
6
|
# end
|
7
7
|
resources :group_member_relations, path: :group_members, only: [:new, :create] do
|
8
8
|
get :unaccepted, on: :collection
|
9
9
|
end
|
10
|
-
resources :reports, except: [:
|
10
|
+
resources :reports, except: [:destroy]
|
11
11
|
post :request_join
|
12
12
|
end
|
13
13
|
resources :group_member_relations, path: :group_members, only: [] do
|
data/lib/nippo_core/engine.rb
CHANGED
data/lib/nippo_core/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nippo_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takumu Uyama
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -108,6 +108,34 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: gretel
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: meta-tags
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
111
139
|
- !ruby/object:Gem::Dependency
|
112
140
|
name: mysql2
|
113
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -204,17 +232,29 @@ files:
|
|
204
232
|
- app/models/nippo_core/report.rb
|
205
233
|
- app/models/nippo_core/user.rb
|
206
234
|
- app/policies/application_policy.rb
|
235
|
+
- app/policies/nippo_core/group_policy.rb
|
207
236
|
- app/policies/nippo_core/report_policy.rb
|
237
|
+
- app/views/kaminari/_first_page.slim
|
238
|
+
- app/views/kaminari/_gap.slim
|
239
|
+
- app/views/kaminari/_last_page.slim
|
240
|
+
- app/views/kaminari/_next_page.slim
|
241
|
+
- app/views/kaminari/_page.slim
|
242
|
+
- app/views/kaminari/_paginator.slim
|
243
|
+
- app/views/kaminari/_prev_page.slim
|
208
244
|
- app/views/layouts/nippo_core/application.slim
|
209
245
|
- app/views/nippo_core/application/_link_to_join.slim
|
210
246
|
- app/views/nippo_core/group_member_relations/accept.js.erb
|
211
247
|
- app/views/nippo_core/group_member_relations/new.slim
|
212
248
|
- app/views/nippo_core/group_member_relations/unaccepted.slim
|
249
|
+
- app/views/nippo_core/groups/_form.slim
|
250
|
+
- app/views/nippo_core/groups/edit.js.erb
|
213
251
|
- app/views/nippo_core/groups/index.slim
|
214
252
|
- app/views/nippo_core/groups/new.slim
|
215
253
|
- app/views/nippo_core/groups/request_join.js.erb
|
216
254
|
- app/views/nippo_core/groups/show.slim
|
217
255
|
- app/views/nippo_core/home/index.slim
|
256
|
+
- app/views/nippo_core/reports/_form.slim
|
257
|
+
- app/views/nippo_core/reports/edit.js.erb
|
218
258
|
- app/views/nippo_core/reports/index.slim
|
219
259
|
- app/views/nippo_core/reports/new.slim
|
220
260
|
- app/views/nippo_core/reports/show.slim
|
@@ -232,9 +272,11 @@ files:
|
|
232
272
|
- app/views/nippo_core/users/shared/_links.slim
|
233
273
|
- app/views/nippo_core/users/show.slim
|
234
274
|
- app/views/nippo_core/users/unlocks/new.slim
|
275
|
+
- config/breadcrumbs.rb
|
235
276
|
- config/initializers/devise.rb
|
236
277
|
- config/locales/devise.en.yml
|
237
278
|
- config/locales/devise.ja.yml
|
279
|
+
- config/locales/en.yml
|
238
280
|
- config/locales/ja.yml
|
239
281
|
- config/routes.rb
|
240
282
|
- db/migrate/20170420094814_devise_create_nippo_core_users.rb
|