Skip to content

Commit

Permalink
add org index
Browse files Browse the repository at this point in the history
  • Loading branch information
804035184 committed May 26, 2020
1 parent faf2d2e commit abddecb
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/homeworks/index.haml
Expand Up @@ -21,4 +21,4 @@
- if homework['description'] != ''
%p= homework['description']
- else
%p 暂无博客简介
%p 暂无博客作业简介
35 changes: 34 additions & 1 deletion app/views/organizations/index.haml
@@ -1 +1,34 @@
%h1 Index page of Organization, waiting to be finished
.small-container
.page-title-holder
.page-title 组织管理

.content-list
-if @all_org_info.length == 0
%div
%el-card{style: 'width: 80%; margin: auto;'}
%br
您还没有创建任何组织,您可以用管理员账户创建组织
-else
- @all_org_info.each do |org|
%el-card{shadow: "hover", style: "width: 95%;margin:auto;"}
%div{slot: 'header'}
%span{style: 'font-size:30px'}
%p= org['name']
%div
%ul
%li
%b 组织代号
%p= org['code']
%div
%ul
%li
%b 组织令牌
%p= org['token']
%div
%ul
%li
%b 组织简介
- if org['description'] != ''
%p= org['description']
- else
%p 暂无组织简介

0 comments on commit abddecb

Please sign in to comment.