Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
O
official
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
吕祺
official
Commits
28d36562
Commit
28d36562
authored
Jul 10, 2023
by
吕祺
⛹🏽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
optional portfolio sincedate
parent
19155eb5
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
portfolio.js
pages/portfolio.js
+2
-2
config.yml
static/admin/config.yml
+1
-1
No files found.
pages/portfolio.js
View file @
28d36562
...
...
@@ -197,14 +197,14 @@ export default class PortfolioPage extends Component {
<
/div
>
<
div
className
=
"two-column modal-portfolio-content"
>
<
div
className
=
"modal-portfolio-detail two-column-reverse-right"
>
<
div
className
=
"modal-portfolio-date"
>
{
selected
.
sinceDate
?
<
div
className
=
"modal-portfolio-date"
>
{
en
===
null
?
''
:
en
?
gaorongTimeEN
:
gaorongTime
}
<
div
className
=
"modal-portfolio-timestr"
>
{
daySince
(
selected
.
sinceDate
)
+
' '
+
(
en
===
null
?
''
:
en
?
dayEN
:
day
)}
<
/div
>
<
/div
>
<
/div>
:''
}
<
div
className
=
"modal-portfolio-date modal-portfolio-date2"
>
{
en
===
null
?
''
:
en
?
officialSiteEN
:
officialSite
}
<
div
className
=
"modal-portfolio-timestr"
>
...
...
static/admin/config.yml
View file @
28d36562
...
...
@@ -164,7 +164,7 @@ collections:
fields
:
-
{
label
:
"
Name"
,
name
:
"
name"
,
widget
:
"
string"
}
-
{
label
:
"
NameEN"
,
name
:
"
nameEN"
,
widget
:
"
string"
}
-
{
label
:
"
Since
Date"
,
name
:
"
sinceDate"
,
widget
:
"
datetime"
}
-
{
label
:
"
Since
Date"
,
name
:
"
sinceDate"
,
widget
:
"
datetime"
,
required
:
false
}
-
{
label
:
"
Description"
,
name
:
"
description"
,
widget
:
"
markdown"
}
-
{
label
:
"
DescriptionEN"
,
name
:
"
descriptionEN"
,
widget
:
"
markdown"
}
-
{
label
:
"
logo"
,
name
:
"
logo"
,
widget
:
"
image"
}
...
...
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