Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
shotengai
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
shotengai
Commits
a6c14536
Commit
a6c14536
authored
Aug 26, 2017
by
ivan Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add views templates
parent
1b07f88f
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
54 additions
and
0 deletions
+54
-0
index.json.jbuilder
...ators/templates/views/customer/orders/index.json.jbuilder
+0
-0
show.json.jbuilder
...rators/templates/views/customer/orders/show.json.jbuilder
+0
-0
show.json.jbuilder
...tors/templates/views/customer/products/show.json.jbuilder
+0
-0
index.json.jbuilder
...ators/templates/views/customer/series/index.json.jbuilder
+0
-0
show.json.jbuilder
...rators/templates/views/customer/series/show.json.jbuilder
+0
-0
index.json.jbuilder
...rs/templates/views/customer/snapshots/index.json.jbuilder
+0
-0
show.json.jbuilder
...ors/templates/views/customer/snapshots/show.json.jbuilder
+0
-0
index.json.jbuilder
...ators/templates/views/merchant/orders/index.json.jbuilder
+4
-0
show.json.jbuilder
...rators/templates/views/merchant/orders/show.json.jbuilder
+1
-0
index.json.jbuilder
...ors/templates/views/merchant/products/index.json.jbuilder
+5
-0
show.json.jbuilder
...tors/templates/views/merchant/products/show.json.jbuilder
+1
-0
index.json.jbuilder
...ators/templates/views/merchant/series/index.json.jbuilder
+5
-0
show.json.jbuilder
...rators/templates/views/merchant/series/show.json.jbuilder
+1
-0
index.json.jbuilder
...rs/templates/views/merchant/snapshots/index.json.jbuilder
+5
-0
show.json.jbuilder
...ors/templates/views/merchant/snapshots/show.json.jbuilder
+1
-0
_order.json.jbuilder
lib/generators/templates/views/share/_order.json.jbuilder
+7
-0
_order_simple.json.jbuilder
...erators/templates/views/share/_order_simple.json.jbuilder
+6
-0
_product.json.jbuilder
lib/generators/templates/views/share/_product.json.jbuilder
+4
-0
_product_simple.json.jbuilder
...ators/templates/views/share/_product_simple.json.jbuilder
+2
-0
_series.json.jbuilder
lib/generators/templates/views/share/_series.json.jbuilder
+3
-0
_series_simple.json.jbuilder
...rators/templates/views/share/_series_simple.json.jbuilder
+3
-0
_snapshot.json.jbuilder
lib/generators/templates/views/share/_snapshot.json.jbuilder
+3
-0
_snapshot_simple.json.jbuilder
...tors/templates/views/share/_snapshot_simple.json.jbuilder
+3
-0
No files found.
lib/generators/templates/views/customer/orders/index.json.jbuilder
0 → 100644
View file @
a6c14536
lib/generators/templates/views/customer/orders/show.json.jbuilder
0 → 100644
View file @
a6c14536
lib/generators/templates/views/customer/products/show.json.jbuilder
0 → 100644
View file @
a6c14536
lib/generators/templates/views/customer/series/index.json.jbuilder
0 → 100644
View file @
a6c14536
lib/generators/templates/views/customer/series/show.json.jbuilder
0 → 100644
View file @
a6c14536
lib/generators/templates/views/customer/snapshots/index.json.jbuilder
0 → 100644
View file @
a6c14536
lib/generators/templates/views/customer/snapshots/show.json.jbuilder
0 → 100644
View file @
a6c14536
lib/generators/templates/views/merchant/orders/index.json.jbuilder
0 → 100644
View file @
a6c14536
json.current_page @orders.current_page
json.total_pages @orders.total_pages
json.send(@orders.first.class.model_name.collection) @orders, partial: 'shotengai/share/order_simple', as: :order
\ No newline at end of file
lib/generators/templates/views/merchant/orders/show.json.jbuilder
0 → 100644
View file @
a6c14536
json.partial! "shotengai/share/order_simple", order: @resource
lib/generators/templates/views/merchant/products/index.json.jbuilder
0 → 100644
View file @
a6c14536
json.current_page @resources.current_page
json.total_pages @resources.total_pages
json.set! @resources.first.class.model_name.collection do
json.array! @resources, partial: 'shotengai/share/product_simple', as: :product
end
lib/generators/templates/views/merchant/products/show.json.jbuilder
0 → 100644
View file @
a6c14536
json.partial! "shotengai/share/product", product: @resource
lib/generators/templates/views/merchant/series/index.json.jbuilder
0 → 100644
View file @
a6c14536
json.current_page @resources.current_page
json.total_pages @resources.total_pages
json.set! @resources.first.class.model_name.collection do
json.array! @resources, partial: 'shotengai/share/product_simple', as: :products
end
lib/generators/templates/views/merchant/series/show.json.jbuilder
0 → 100644
View file @
a6c14536
json.partial! "shotengai/share/series", series: @resource
lib/generators/templates/views/merchant/snapshots/index.json.jbuilder
0 → 100644
View file @
a6c14536
json.current_page @resources.current_page
json.total_pages @resources.total_pages
json.set! @resources.first.class.model_name.collection do
json.array! @resources, partial: 'shotengai/share/snapshot_simple', as: :snapshot
end
lib/generators/templates/views/merchant/snapshots/show.json.jbuilder
0 → 100644
View file @
a6c14536
json.partial! "shotengai/share/snaoshot", snaoshot: @resource
lib/generators/templates/views/share/_order.json.jbuilder
0 → 100644
View file @
a6c14536
json.extract! order, :id, :seq, :address,
:pay_time, :delivery_time, :receipt_time,
:delivery_way, :delivery_cost,
:merchant_remark, :mark, :customer_remark,
:status, :meta
json.snapshots, partial: 'shotengai/share/snapshot_simple', as: :series
\ No newline at end of file
lib/generators/templates/views/share/_order_simple.json.jbuilder
0 → 100644
View file @
a6c14536
json.extract! order, :id, :seq, :address,
:pay_time, :delivery_time, :receipt_time,
:delivery_way, :delivery_cost,
:merchant_remark, :mark, :customer_remark,
:status, :meta
\ No newline at end of file
lib/generators/templates/views/share/_product.json.jbuilder
0 → 100644
View file @
a6c14536
json.extract! product, :id, :title, :status, :need_express, :need_time_attr,
:cover_image, :banners, :spec, :detail, :meta
json.default_series product.default_series, partial: 'shotengai/share/series_simple', as: :series
\ No newline at end of file
lib/generators/templates/views/share/_product_simple.json.jbuilder
0 → 100644
View file @
a6c14536
json.extract! product, :id, :title, :status, :need_express, :cover_image
\ No newline at end of file
lib/generators/templates/views/share/_series.json.jbuilder
0 → 100644
View file @
a6c14536
json.extract! series, :id, :original_price, :price,
:stock, :spec, :meta
\ No newline at end of file
lib/generators/templates/views/share/_series_simple.json.jbuilder
0 → 100644
View file @
a6c14536
json.extract! series, :id, :original_price, :price,
:stock, :spec, :meta
\ No newline at end of file
lib/generators/templates/views/share/_snapshot.json.jbuilder
0 → 100644
View file @
a6c14536
json.extract! snapshot, :id, :original_price, :price, :count,
:spec, :banners, :cover_image, :detail, :meta
\ No newline at end of file
lib/generators/templates/views/share/_snapshot_simple.json.jbuilder
0 → 100644
View file @
a6c14536
json.extract! snapshot, :id, :original_price, :price, :count,
:spec, :cover_image, :meta
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment