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
24d81970
Commit
24d81970
authored
9 years ago
by
Mauricio Giacomini Girardello
Browse files
Options
Downloads
Patches
Plain Diff
displaying welcome panel for only not logged users
parent
c8c37a9b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/views/welcome/index.html.erb
+67
-60
67 additions, 60 deletions
app/views/welcome/index.html.erb
with
67 additions
and
60 deletions
app/views/welcome/index.html.erb
+
67
−
60
View file @
24d81970
...
@@ -2,83 +2,90 @@
...
@@ -2,83 +2,90 @@
<div
class=
"col-md-7"
>
<div
class=
"col-md-7"
>
<div
class=
"row"
>
<div
class=
"row"
>
<%
if
@carousel
.
present?
%>
<%
if
@carousel
.
present?
%>
<div
id=
"myCarousel"
class=
"carousel slide"
data-ride=
"carousel"
>
<div
id=
"myCarousel"
class=
"carousel slide"
data-ride=
"carousel"
>
<!-- Indicators -->
<!-- Indicators -->
<ol
class=
"carousel-indicators"
>
<ol
class=
"carousel-indicators"
>
<%
i
=
0
%>
<%
i
=
0
%>
<%
@carousel
.
each
do
|
highlight
|
%>
<%
@carousel
.
each
do
|
highlight
|
%>
<%
if
highlight
==
@carousel
.
first
%>
<%
if
highlight
==
@carousel
.
first
%>
<li
data-target=
"#myCarousel"
data-slide-to=
"
<%=
i
%>
"
class=
"active"
></li>
<li
data-target=
"#myCarousel"
data-slide-to=
"
<%=
i
%>
"
class=
"active"
></li>
<%
else
%>
<%
else
%>
<li
data-target=
"#myCarousel"
data-slide-to=
"
<%=
i
%>
"
></li>
<li
data-target=
"#myCarousel"
data-slide-to=
"
<%=
i
%>
"
></li>
<%
end
%>
<%
i
+=
1
%>
<%
end
%>
<%
end
%>
<%
i
+=
1
%>
</ol>
<%
end
%>
<div
class=
"carousel-inner"
role=
"listbox"
>
</ol>
<%
@carousel
.
each
do
|
highlight
|
%>
<div
class=
"carousel-inner"
role=
"listbox"
>
<%
if
highlight
==
@carousel
.
first
%>
<%
@carousel
.
each
do
|
highlight
|
%>
<%
highlight_class
=
"item active"
%>
<%
if
highlight
==
@carousel
.
first
%>
<%
else
%>
<%
highlight_class
=
"item active"
%>
<%
highlight_class
=
"item"
%>
<%
else
%>
<%
end
%>
<%
highlight_class
=
"item"
%>
<div
class=
"
<%=
highlight_class
%>
"
>
<%
end
%>
<%=
image_tag
highlight
.
image
.
url
(
:larger
)
%>
<div
class=
"
<%=
highlight_class
%>
"
>
<div
class=
"container"
>
<%=
image_tag
highlight
.
image
.
url
(
:larger
)
%>
<div
class=
"carousel-caption"
>
<div
class=
"container"
>
<h1>
<%=
link_to
highlight
.
title
,
highlight
.
url
,
style:
'color: white;'
%>
</h1>
<div
class=
"carousel-caption"
>
<h1>
<%=
link_to
highlight
.
title
,
highlight
.
url
,
style:
'color: white;'
%>
</h1>
</div>
</div>
</div>
</div>
</div>
<%
end
%>
</div>
</div>
<%
end
%>
</div>
</div>
</div>
<%
end
%>
<%
end
%>
</div>
</div>
<div
class=
"row mainpage-highlights"
>
<div
class=
"row mainpage-highlights"
>
<%
if
@general
.
present?
%>
<%
if
@general
.
present?
%>
<ul
class=
"list-unstyled"
>
<ul
class=
"list-unstyled"
>
<h2>
Destaques
</h2>
<h2>
Destaques
</h2>
<%=
render
@general
,
orientation:
'horizontal'
%>
<%=
render
@general
,
orientation:
'horizontal'
%>
<%
end
%>
<%
end
%>
</ul>
</ul>
</div>
</div>
</div>
</div>
<div
class=
"col-md-3 col-md-offset-1 hidden-xs hidden-sm"
>
<div
class=
"panel-wrapper"
>
<%
if
!
user_signed_in?
%>
<div
style=
"padding: 30px; min-height: 400px"
>
<div
class=
"col-md-3 col-md-offset-1 hidden-xs hidden-sm"
>
<h2>
Cadastre-se!
</h2><br>
<div
class=
"panel-wrapper"
>
<h2>
Vantagens de cadastrar:
</h2><br>
<div
style=
"padding: 30px; min-height: 400px"
>
<h2>
Faça suas coleções.
</h2><br>
<h2>
Cadastre-se!
</h2><br>
<h2>
Curta objetos.
</h2><br>
<h2>
Tenha seus objetos favoritos.
</h2><br>
<h2>
Vantagens de cadastrar:
</h2><br>
</div>
<div
style=
"width: 100%; padding: 30px;"
>
<h2>
Faça suas coleções.
</h2><br>
<%=
form_tag
(
new_user_registration_path
,
method:
'get'
)
do
%>
<%=
text_field_tag
:email
,
''
,
placeholder:
"Seu email"
,
class:
'form-control'
%>
<h2>
Curta objetos.
</h2><br>
<%=
button_to
"Cadastrar-se"
,
new_user_registration_path
,
class:
"btn btn-danger"
,
style:
'margin-top: 10px; width: 230px; background-color: #FF2134;'
%>
<%
end
%>
<h2>
Tenha seus objetos favoritos.
</h2><br>
</div>
<div
style=
"width: 100%; padding: 30px;"
>
<%=
form_tag
(
new_user_registration_path
,
method:
'get'
)
do
%>
<%=
text_field_tag
:email
,
''
,
placeholder:
"Seu email"
,
class:
'form-control'
%>
<%=
button_to
"Cadastrar-se"
,
new_user_registration_path
,
class:
"btn btn-danger"
,
style:
'margin-top: 10px; width: 230px; background-color: #FF2134;'
%>
<%
end
%>
</div>
</div>
</div>
</div>
</div>
<%
end
%>
</div>
</div>
</div>
<div
class=
"row mainpage-subjects"
>
<div
class=
"row mainpage-subjects"
>
<div
class=
"col-md-12"
>
<div
class=
"col-md-12"
>
<%
unless
@subjects
.
blank?
%>
<%
unless
@subjects
.
blank?
%>
<div
class=
"row learning-object-columns"
>
<div
class=
"row learning-object-columns"
>
<h2>
Destaque por assunto
</h2>
<h2>
Destaque por assunto
</h2>
<%
@subjects
.
each
do
|
subject
|
%>
<%
@subjects
.
each
do
|
subject
|
%>
<div
class=
"row mainpage-subject-element"
>
<div
class=
"row mainpage-subject-element"
>
<h4><b>
<%=
subject
.
name
%>
</b></h4>
<h4><b>
<%=
subject
.
name
%>
</b></h4>
<%=
render
subject
.
highlights
.
first
,
orientation:
'vertical'
%>
<%=
render
subject
.
highlights
.
first
,
orientation:
'vertical'
%>
<p
class=
"more"
>
<p
class=
"more"
>
<a
href=
"#"
>
Ver Mais
</a>
<a
href=
"#"
>
Ver Mais
</a>
</p>
</p>
</div>
</div>
<%
end
%>
<%
end
%>
</div>
</div>
<%
end
%>
<%
end
%>
</div>
</div>
</div>
</div>
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