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
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
d2ab7b28
Commit
d2ab7b28
authored
9 years ago
by
Matheus Agio Nerone
Browse files
Options
Downloads
Patches
Plain Diff
improving layout
Signed-off-by:
man13
<
man13@inf.ufpr.br
>
parent
62938262
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/views/collections/show.html.erb
+19
-22
19 additions, 22 deletions
app/views/collections/show.html.erb
with
19 additions
and
22 deletions
app/views/collections/show.html.erb
+
19
−
22
View file @
d2ab7b28
...
...
@@ -3,17 +3,16 @@
<div
class=
"container-fluid"
>
<div
class=
"navbar-right"
style=
"text-align:right"
>
<%
if
@own
%>
<%
if
@collection
.
class
!=
Bookmark
%>
<%=
link_to
'#'
do
%>
<%=
link_to
'APAGAR'
,
collection_path
(
@collection
.
id
),
method: :delete
,
class:
'btn btn-danger btn-remove'
,
style:
'margin-right: 30px'
,
data:
{
confirm:
'Não será possível recuperá-la, você tem certeza?'
}
%>
</span>
<%
if
@collection
.
class
!=
Bookmark
%>
<%=
link_to
'APAGAR'
,
collection_path
(
@collection
.
id
),
method: :delete
,
class:
'btn btn-danger btn-remove'
,
style:
'margin-right: 10px'
,
data:
{
confirm:
'Não será possível recuperá-la, você tem certeza?'
}
%>
<%=
link_to
'Avalie esta coleção!'
,
new_review_path
(
reviewable_id:
@collection
.
id
,
reviewable_type:
@collection
.
class
.
name
),
class:
'btn btn-success'
,
style:
'margin-right: 30px'
%>
<div
class=
"collection-privacy"
>
<input
type=
"radio"
name=
"privacy"
id=
"privacy_private"
data-cid=
"
<%=
@collection
.
id
%>
"
value=
"private"
<%=
"checked"
if
@collection
.
privacy
==
"private"
%>
>
<label
for=
"privacy_private"
>
Privada
</label>
|
<input
type=
"radio"
name=
"privacy"
id=
"privacy_public"
data-cid=
"
<%=
@collection
.
id
%>
"
value=
"public"
<%=
"checked"
if
@collection
.
privacy
==
"public"
%>
>
<label
for=
"privacy_public"
>
Pública
</label>
</div>
<%
end
%>
<div
class=
"collection-privacy"
>
<input
type=
"radio"
name=
"privacy"
id=
"privacy_private"
data-cid=
"
<%=
@collection
.
id
%>
"
value=
"private"
<%=
"checked"
if
@collection
.
privacy
==
"private"
%>
>
<label
for=
"privacy_private"
>
Privada
</label>
|
<input
type=
"radio"
name=
"privacy"
id=
"privacy_public"
data-cid=
"
<%=
@collection
.
id
%>
"
value=
"public"
<%=
"checked"
if
@collection
.
privacy
==
"public"
%>
>
<label
for=
"privacy_public"
>
Pública
</label>
</div>
<%
end
%>
<%
end
%>
</div>
...
...
@@ -27,7 +26,7 @@
<li><h2>
<%=
(
@collection
.
class
!=
Bookmark
)
?
@collection
.
name
:
"Favoritos"
%>
</h2></li>
<li>
<input
type=
"checkbox"
class=
"count-collections-objects"
data-toggle=
"tooltip"
data-placement=
"bottom"
title=
"Selecionar todos"
>
<%=
collection_length
@collection
%>
<%=
collection_length
@collection
%>
</a>
</li>
</ul>
...
...
@@ -44,27 +43,25 @@
Salvar no
<br>
computador
</span></a>
</li>
<%
if
user_signed_in?
%>
<li
class=
"set-align collection-button"
data-action=
"copy"
data-class=
"collections"
>
<a
href=
"javascript:void(0);"
><span
class=
"left-edge1"
>
<%=
image_tag
image_path
(
"icons/Copiar_Seleção.png"
),
class:
"logo-image"
,
size:
"35x35"
%>
</span><span
style=
"color: white"
>
<li
class=
"set-align collection-button"
data-action=
"copy"
data-class=
"collections"
>
<a
href=
"javascript:void(0);"
><span
class=
"left-edge1"
>
<%=
image_tag
image_path
(
"icons/Copiar_Seleção.png"
),
class:
"logo-image"
,
size:
"35x35"
%>
</span><span
style=
"color: white"
>
Copiar
<br>
para
</span></a>
</li>
</li>
<%
end
%>
<%
if
@own
%>
<li
class=
"set-align collection-button"
data-action=
"move"
data-class=
"collections"
>
<a
href=
"javascript:void(0);"
><span
class=
"left-edge1"
>
<%=
image_tag
image_path
(
"icons/Mover_Seleção.png"
),
class:
"logo-image"
,
size:
"35x35"
%>
</span><span
style=
"color: white"
>
<li
class=
"set-align collection-button"
data-action=
"move"
data-class=
"collections"
>
<a
href=
"javascript:void(0);"
><span
class=
"left-edge1"
>
<%=
image_tag
image_path
(
"icons/Mover_Seleção.png"
),
class:
"logo-image"
,
size:
"35x35"
%>
</span><span
style=
"color: white"
>
Mover
<br>
para
</span></a>
</li>
<li
class=
"set-align collection-button"
data-action=
"remove"
data-class=
"collections"
>
<a
href=
"javascript:void(0);"
><span
class=
"left-edge1"
>
<%=
image_tag
image_path
(
"icons/Remover_da_Coleção_Seleção.png"
),
class:
"logo-image"
,
size:
"35x35"
%>
</span><span
style=
"color: white"
>
</li>
<li
class=
"set-align collection-button"
data-action=
"remove"
data-class=
"collections"
>
<a
href=
"javascript:void(0);"
><span
class=
"left-edge1"
>
<%=
image_tag
image_path
(
"icons/Remover_da_Coleção_Seleção.png"
),
class:
"logo-image"
,
size:
"35x35"
%>
</span><span
style=
"color: white"
>
Remover da
<br>
coleção
</span></a>
</li>
</li>
<%
end
%>
</ul>
</div>
</nav>
<%=
link_to
'Avalie esta coleção!'
,
new_review_path
(
reviewable_id:
@collection
.
id
,
reviewable_type:
@collection
.
class
.
name
),
class:
'btn btn-success'
%>
<div
class=
"row"
>
<div
class=
"learning-object-columns"
>
<br/>
...
...
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