mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-09 05:18:01 +08:00
Fix for show and create
This commit is contained in:
parent
a1fa0b4e05
commit
a407bf857f
1 changed files with 4 additions and 2 deletions
|
@ -35,7 +35,8 @@ class MyModuleRepositorySnapshotsController < ApplicationController
|
||||||
|
|
||||||
render json: {
|
render json: {
|
||||||
html: render_to_string(partial: 'my_modules/repositories/full_view_version',
|
html: render_to_string(partial: 'my_modules/repositories/full_view_version',
|
||||||
locals: { repository_snapshot: repository_snapshot })
|
locals: { repository_snapshot: repository_snapshot,
|
||||||
|
can_delete_snapshot: can_manage_module?(@my_module) })
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -48,7 +49,8 @@ class MyModuleRepositorySnapshotsController < ApplicationController
|
||||||
def show
|
def show
|
||||||
render json: {
|
render json: {
|
||||||
html: render_to_string(partial: 'my_modules/repositories/full_view_version',
|
html: render_to_string(partial: 'my_modules/repositories/full_view_version',
|
||||||
locals: { repository_snapshot: @repository_snapshot })
|
locals: { repository_snapshot: @repository_snapshot,
|
||||||
|
can_delete_snapshot: can_manage_module?(@my_module) })
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue