Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
UGL
website
Commits
d58173b9
Commit
d58173b9
authored
Jun 06, 2022
by
JOE XMG
Browse files
update
parent
e564a789
Pipeline
#6498
passed with stage
in 19 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
public/content/content_internal_example.json
0 → 100644
View file @
d58173b9
{
"item"
:
{
"title"
:
"Test"
,
"project"
:
""
,
"author"
:
{
"firstName"
:
"..."
,
"lastName"
:
"..."
,
"hftURL"
:
"..."
},
"project_year_start"
:
"2021"
,
"project_year_end"
:
"2022"
,
"project_is_on_going"
:
true
,
"imageLink"
:
"imgs/hft.jpg"
,
"keywords"
:
[
"..."
],
"description_en"
:
"..."
,
"description_de"
:
"..."
,
"internal"
:
true
},
"links"
:
{
"demo"
:
"..."
,
"publication"
:
"..."
,
"youtube"
:
"..."
,
"project"
:
"..."
},
"refIndex"
:
15
}
\ No newline at end of file
public/js/add_content.js
View file @
d58173b9
...
...
@@ -59,6 +59,14 @@ function addcontent(item) {
repoHTML
=
`<a class="btn btn-sm btn-outline-info mt-1" href="
${
repoLink
}
" target="_blank"> <i class="fa fa-gitlab"></i> Git/Repository </a>`
}
if
(
'
internal
'
in
item
.
item
)
{
if
(
item
.
item
.
internal
)
{
var
internal_tag
=
`<span class="badge bg-secondary" style="color: white;">Internal Access Only</span> <br>`
description
=
internal_tag
+
description
}
}
new_row
.
innerHTML
=
new_row
.
innerHTML
+
'
<div class="col-lg-4">
'
+
'
<div class="card mb-4 shadow-sm extension overflow-auto">
'
+
'
<h5>
'
+
item
.
item
.
title
+
'
<span class="content-subtitle text-muted">
'
+
item
.
item
.
project
+
'
</span></h5>
'
+
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment