Toggle navigation
Toggle navigation
This project
Loading...
Sign in
zuzitsu
/
UR_Village
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Suyeon Jung
2020-12-09 05:20:42 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
243b88a669e0ad8c6a0f1a2973e7f7f10b0067cc
243b88a6
1 parent
23082fe2
Add grade function to category
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
11 deletions
public/css/category.css
routes/category.js
views/components/grade.ejs
public/css/category.css
View file @
243b88a
...
...
@@ -6,11 +6,3 @@
.card-body
{
text-align
:
center
;
}
\ No newline at end of file
.alert
{
text-align
:
center
;
width
:
50%
;
display
:
inline-block
;
margin-left
:
auto
;
margin-right
:
auto
;
}
\ No newline at end of file
...
...
routes/category.js
View file @
243b88a
This diff is collapsed. Click to expand it.
views/components/grade.ejs
View file @
243b88a
<div class="alert alert-primary" role="alert">
<h3>평가 등급 : <%=grade%></h3>
</div>
\ No newline at end of file
<%if(grade == 'A'){%>
<div class="alert alert-primary" role="alert">
<h3>평가 등급 :
<%=grade%>
</h3>
</div>
<%} else if(grade == 'B'){%>
<div class="alert alert-warning" role="alert">
<h3>평가 등급 :
<%=grade%>
</h3>
</div>
<%} else{%>
<div class="alert alert-danger" role="alert">
<h3>평가 등급 :
<%=grade%>
</h3>
</div>
<%}%>
\ No newline at end of file
...
...
Please
register
or
login
to post a comment