Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cleaning-portalmec
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Richard Fernando Heise Ferreira
cleaning-portalmec
Commits
ed7ab00a
Commit
ed7ab00a
authored
9 years ago
by
Matheus Agio Nerone
Browse files
Options
Downloads
Patches
Plain Diff
translating flash messages
Signed-off-by:
man13
<
man13@inf.ufpr.br
>
parent
bd7b1847
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/controllers/management/mime_types_controller.rb
+3
-3
3 additions, 3 deletions
app/controllers/management/mime_types_controller.rb
app/controllers/management/object_types_controller.rb
+2
-2
2 additions, 2 deletions
app/controllers/management/object_types_controller.rb
with
5 additions
and
5 deletions
app/controllers/management/mime_types_controller.rb
+
3
−
3
View file @
ed7ab00a
...
@@ -23,7 +23,7 @@ class Management::MimeTypesController < ManagementController
...
@@ -23,7 +23,7 @@ class Management::MimeTypesController < ManagementController
respond_to
do
|
format
|
respond_to
do
|
format
|
if
@mime_type
.
save
if
@mime_type
.
save
format
.
html
{
redirect_to
management_mime_types_path
,
notice:
'Mime type
was
suc
c
ess
fully created
.'
}
format
.
html
{
redirect_to
management_mime_types_path
,
notice:
'Mime type
criado com
sucess
o
.'
}
format
.
json
{
render
:show
,
status: :created
,
location:
@mime_type
}
format
.
json
{
render
:show
,
status: :created
,
location:
@mime_type
}
else
else
format
.
html
{
render
:new
}
format
.
html
{
render
:new
}
...
@@ -37,7 +37,7 @@ class Management::MimeTypesController < ManagementController
...
@@ -37,7 +37,7 @@ class Management::MimeTypesController < ManagementController
def
update
def
update
respond_to
do
|
format
|
respond_to
do
|
format
|
if
@mime_type
.
update
(
mime_type_params
)
if
@mime_type
.
update
(
mime_type_params
)
format
.
html
{
redirect_to
management_mime_types_path
,
notice:
'Mime type
was
suc
c
ess
fully updated
.'
}
format
.
html
{
redirect_to
management_mime_types_path
,
notice:
'Mime type
atualizado com
sucess
o
.'
}
format
.
json
{
render
:show
,
status: :ok
,
location:
@management_mime_type
}
format
.
json
{
render
:show
,
status: :ok
,
location:
@management_mime_type
}
else
else
format
.
html
{
render
:edit
}
format
.
html
{
render
:edit
}
...
@@ -51,7 +51,7 @@ class Management::MimeTypesController < ManagementController
...
@@ -51,7 +51,7 @@ class Management::MimeTypesController < ManagementController
def
destroy
def
destroy
@mime_type
.
destroy
@mime_type
.
destroy
respond_to
do
|
format
|
respond_to
do
|
format
|
format
.
html
{
redirect_to
management_mime_types_url
,
notice:
'Mime
t
ype
was
suc
c
ess
fully destroyed
.'
}
format
.
html
{
redirect_to
management_mime_types_url
,
notice:
'Mime
T
ype
destruido com
sucess
o
.'
}
format
.
json
{
head
:no_content
}
format
.
json
{
head
:no_content
}
end
end
end
end
...
...
This diff is collapsed.
Click to expand it.
app/controllers/management/object_types_controller.rb
+
2
−
2
View file @
ed7ab00a
...
@@ -41,7 +41,7 @@ class Management::ObjectTypesController < ManagementController
...
@@ -41,7 +41,7 @@ class Management::ObjectTypesController < ManagementController
def
update
def
update
respond_to
do
|
format
|
respond_to
do
|
format
|
if
@object_type
.
update
(
sanitazed_params
)
if
@object_type
.
update
(
sanitazed_params
)
format
.
html
{
redirect_to
management_object_types_path
,
notice:
'
Object type was
suc
c
ess
fully updated
.'
}
format
.
html
{
redirect_to
management_object_types_path
,
notice:
'
Tipo de objeto atualizado com
sucess
o
.'
}
format
.
json
{
render
:show
,
status: :ok
,
location:
management_object_types_path
}
format
.
json
{
render
:show
,
status: :ok
,
location:
management_object_types_path
}
else
else
format
.
html
{
render
:edit
}
format
.
html
{
render
:edit
}
...
@@ -55,7 +55,7 @@ class Management::ObjectTypesController < ManagementController
...
@@ -55,7 +55,7 @@ class Management::ObjectTypesController < ManagementController
def
destroy
def
destroy
SafeObjectTypeDestroyService
.
execute
@object_type
SafeObjectTypeDestroyService
.
execute
@object_type
respond_to
do
|
format
|
respond_to
do
|
format
|
format
.
html
{
redirect_to
management_object_types_url
,
notice:
'
Object type was
suc
c
ess
fully destroyed
.'
}
format
.
html
{
redirect_to
management_object_types_url
,
notice:
'
Tipo de objeto destruido com
sucess
o
.'
}
format
.
json
{
head
:no_content
}
format
.
json
{
head
:no_content
}
end
end
end
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment