Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Admin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container 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
osuny
Admin
Commits
d7980d36
Commit
d7980d36
authored
1 year ago
by
Olivia206
Browse files
Options
Downloads
Patches
Plain Diff
preview for programs list
parent
51756eeb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/views/admin/communication/blocks/templates/programs/_preview.html.erb
+16
-5
16 additions, 5 deletions
...communication/blocks/templates/programs/_preview.html.erb
db/schema.rb
+43
-81
43 additions, 81 deletions
db/schema.rb
with
59 additions
and
86 deletions
app/views/admin/communication/blocks/templates/programs/_preview.html.erb
+
16
−
5
View file @
d7980d36
<%
$
class
=
"block block-programs"
class
_name
=
"block block-programs"
unless
@block
.
title
.
blank?
$
class
+=
" block-with-title"
class
_name
+=
" block-with-title"
end
%>
<section
class=
"
<%=
$class
%>
"
style=
"display: none;"
>
<section
class=
"
<%=
class_name
%>
"
>
<div
class=
"container"
>
<div
class=
"block-content"
>
<%
unless
@block
.
title
.
blank?
%>
<div
class=
"top"
>
<%
unless
@block
.
title
.
blank?
%>
<h2>
<%=
@block
.
title
%>
</h2>
<%
end
%>
</div>
<%
end
%>
<ol
class=
"programs"
>
<%
@block
.
template
.
selected_programs
.
each
do
|
program
|
%>
<%
@block
.
template
.
elements
.
each
do
|
element
|
program
=
element
.
program
next
if
program
.
nil?
%>
<li>
<%=
program
%>
</p>
<%=
link_to
program
,
[
:admin
,
program
]
%>
</li>
<%
end
%>
</ol>
...
...
This diff is collapsed.
Click to expand it.
db/schema.rb
+
43
−
81
View file @
d7980d36
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