|
- <div class="ui container" id="navbar">
- <div class="item brand" style="justify-content: space-between;height:62px;">
- <a href="https://openi.org.cn/">
- <img class="ui mini image" src="{{StaticUrlPrefix}}/img/logo-w.svg">
- </a>
- <div class="ui basic icon button mobile-only" id="navbar-expand-toggle">
- <i class="sidebar icon"></i>
- </div>
- </div>
- <div class="item brand" style="padding-right:1.9rem">
- <a href="/">
- <!-- <img class="ui mini image" style="height: 1.3rem;" src="{{StaticUrlPrefix}}/img/git-logo.svg"> -->
- <div>
- <div style="display:flex">
- <div style="line-height:24px;font-weight:700;font-size:24px;color:rgba(91,185,115,1);margin-right:2px;">AI</div>
- <div style="line-height:24px;font-weight:700;font-size:21px;color:rgba(91,185,115,1);">协作平台</div>
- </div>
- <div style="font-weight:300;font-size:12px;color: rgba(254,221,89,1);font-style:normal;letter-spacing: 0.1px;line-height:17px;">Powered by C²NET</div>
- </div>
- </a>
- </div>
- {{if .IsSigned}}
- <div class=" item edge">
- <div class="dropdown-menu">
- <a class=" item lfpd" href="/dashboard" >
- {{.i18n.Tr "index"}} <i class="dropdown icon mglf" ></i>
- </a>
-
- <div class="dropdown-content" style="min-width: 110px;border-radius:4px;min-width: max-content;">
- <a style="border: none;color: #000;" class=" item" href="{{AppSubUrl}}/issues">{{.i18n.Tr "issues"}}</a>
- <a style="border: none;color: #000; white-space: nowrap;" class=" item" href="{{AppSubUrl}}/pulls">{{.i18n.Tr "pull_requests"}}</a>
- <a style="border: none;color: #000;" class=" item" href="{{AppSubUrl}}/milestones">{{.i18n.Tr "milestones"}}</a>
- <a style="border: none;color: #000;" class=" item" href="{{AppSubUrl}}/cloudbrains">{{.i18n.Tr "repo.cloudbrain.task"}}</a>
- <a style="border: none;color: #000;" class=" item" href="{{AppSubUrl}}/reward/point">{{.i18n.Tr "calculation_points"}}</a>
- </div>
- </div>
- </div>
- <a class="item" href="{{AppSubUrl}}/explore/repos">{{.i18n.Tr "custom.head.project"}}</a>
- <a class="item" href="{{AppSubUrl}}/explore/datasets">{{.i18n.Tr "custom.head.dataset"}}</a>
- <div class="ui simple dropdown item" >
- {{.i18n.Tr "repo.model_manager"}}
- <i class="dropdown icon"></i>
- <div class="menu">
- <a class="item" href="{{AppSubUrl}}/extension/tuomin/upload">{{.i18n.Tr "repo.model_experience"}}</a>
- </div>
- </div>
- <div class="ui simple dropdown item" id='dropdown_explore'>
- {{.i18n.Tr "explore"}}
- <i class="dropdown icon"></i>
- <div class="menu">
- <a class="item" href="{{AppSubUrl}}/explore/users">{{.i18n.Tr "explore.users"}}</a>
- <a class="item" href="{{AppSubUrl}}/explore/organizations">{{.i18n.Tr "explore.organizations"}}</a>
- <a class="item" href="{{AppSubUrl}}/explore/images">{{.i18n.Tr "explore.images"}}</a>
- {{if .IsOperator}}
- {{/* <a class="item" href="{{AppSubUrl}}/explore/data_analysis">{{.i18n.Tr "explore.data_analysis"}}</a> */}}
- <a class="item" href="{{AppSubUrl}}/kanban/index.html" target="_blank" rel="opener">{{.i18n.Tr "explore.data_analysis"}}</a>
- {{end}}
- <a class="item" href="{{AppSubUrl}}/OpenI">{{.i18n.Tr "custom.head.openi.repo"}}</a>
- </div>
- </div>
- {{else if .IsLandingPageHome}}
- <div class="item edge">
- <div class="dropdown-menu">
- <a class=" item lfpd" href="/user/login">
- {{.i18n.Tr "home"}} <i class="dropdown icon mglf"></i>
- </a>
-
- <div class="dropdown-content" style="min-width: 110px;border-radius:4px;min-width: max-content;">
- <a style="border: none;color: #000;" class=" item" href="{{AppSubUrl}}/user/login">{{.i18n.Tr "issues"}}</a>
- <a style="border: none;color: #000; white-space: nowrap;" class=" item" href="{{AppSubUrl}}/user/login">{{.i18n.Tr "pull_requests"}}</a>
- <a style="border: none;color: #000;" class=" item" href="{{AppSubUrl}}/user/login">{{.i18n.Tr "milestones"}}</a>
- <a style="border: none;color: #000;" class=" item" href="{{AppSubUrl}}/cloudbrains">{{.i18n.Tr "repo.cloudbrain.task"}}</a>
- <a style="border: none;color: #000;" class=" item" href="{{AppSubUrl}}/reward/point">{{.i18n.Tr "calculation_points"}}</a>
- </div>
- </div>
- </div>
-
- <a class="item" href="{{AppSubUrl}}/explore/repos">{{.i18n.Tr "custom.head.project"}}</a>
- <a class="item" href="{{AppSubUrl}}/explore/datasets">{{.i18n.Tr "custom.head.dataset"}}</a>
- <div class="ui simple dropdown item" >
- {{.i18n.Tr "repo.model_manager"}}
- <i class="dropdown icon"></i>
- <div class="menu">
- <a class="item" href="{{AppSubUrl}}/extension/tuomin/upload">{{.i18n.Tr "repo.model_experience"}}</a>
- </div>
- </div>
-
- <div class="ui simple dropdown item" id='dropdown_PageHome'>
- {{.i18n.Tr "explore"}}
- <i class="dropdown icon"></i>
- <div class="menu" >
- <a class="item" href="{{AppSubUrl}}/explore/users">{{.i18n.Tr "explore.users"}}</a>
- <a class="item" href="{{AppSubUrl}}/explore/organizations">{{.i18n.Tr "explore.organizations"}}</a>
- <a class="item" href="{{AppSubUrl}}/explore/images">{{.i18n.Tr "explore.images"}}</a>
- {{if .IsOperator}}
- {{/* <a class="item" href="{{AppSubUrl}}/explore/data_analysis">{{.i18n.Tr "explore.data_analysis"}}</a> */}}
- <a class="item" href="{{AppSubUrl}}/kanban/index.html" target="_blank" rel="opener">{{.i18n.Tr "explore.data_analysis"}}</a>
- {{end}}
- <a class="item" href="{{AppSubUrl}}/OpenI">{{.i18n.Tr "custom.head.openi.repo"}}</a>
- </div>
- </div>
- {{else if .IsLandingPageExplore}}
- <a class="item {{if .PageIsExplore}}active{{end}}" href="{{AppSubUrl}}/explore/repos">{{.i18n.Tr "home"}}</a>
- {{else if .IsLandingPageOrganizations}}
- <a class="item {{if .PageIsExplore}}active{{end}}" href="{{AppSubUrl}}/explore/organizations">{{.i18n.Tr "home"}}</a>
- {{end}}
-
- {{template "custom/extra_links" .}}
-
- {{/*
- <div class="item">
- <div class="ui icon input">
- <input class="searchbox" type="text" placeholder="{{.i18n.Tr "search_project"}}">
- <i class="search icon"></i>
- </div>
- </div>
- */}}
-
- {{if .IsSigned}}
- <div class="right stackable menu">
- <form id="searchForm" class="fourteen wide mobile ten wide tablet ten wide computer column ui form ignore-dirty" style="margin:auto" action="/all/search/" method="post">
- <div class="ui fluid action input" style="background:transparent ;border-radius: 5px;width: 200px;height:30px;border:rgb(233,233,233) solid 1px;">
- <input name="q" value="{{.Keyword}}" placeholder="{{.i18n.Tr "explore.search"}}..."
- style="transition: background-color 5000s ease-in-out 0s;-webkit-text-fill-color:white;background:transparent;color:white;border: none;outline: none;">
- <input type="hidden" name="tab" value="{{$.TabName}}">
- <input type="hidden" name="sort" value="hot">
- <button style="border:none;background-color:transparent;outline:none;border-radius:5px;cursor:pointer;">
- <img type="submit" style="width:21px;height:21px;margin:auto;vertical-align:bottom;" src="/img/search.svg" >
- </button>
- </div>
- </form>
- <a href="{{AppSubUrl}}/notifications" class="item poping up" data-content='{{.i18n.Tr "notifications"}}' data-variation="tiny inverted">
- <span class="text">
- <span class="fitted">{{svg "octicon-bell" 16}}</span>
- <span class="sr-mobile-only">{{.i18n.Tr "notifications"}}</span>
- {{$notificationUnreadCount := 0}}
- {{if .NotificationUnreadCount}}{{$notificationUnreadCount = call .NotificationUnreadCount}}{{end}}
- <span class="ui red label {{if not $notificationUnreadCount}}hidden{{end}} notification_count">
- {{$notificationUnreadCount}}
- </span>
- </span>
- </a>
-
- <div class="ui simple dropdown jump item poping up" data-content="{{.i18n.Tr "create_new"}}" data-variation="tiny inverted">
- <span class="text">
- <span class="fitted">{{svg "octicon-plus" 16}}</span>
- <span class="sr-mobile-only">{{.i18n.Tr "create_new"}}</span>
- <span class="fitted not-mobile">{{svg "octicon-triangle-down" 16}}</span>
- </span>
- <div class="menu">
- <a class="item" href="{{AppSubUrl}}/repo/create">
- <span class="fitted">{{svg "octicon-plus" 16}}</span> {{.i18n.Tr "new_repo"}}
- </a>
- <a class="item" href="{{AppSubUrl}}/repo/migrate">
- <span class="fitted">{{svg "octicon-repo-clone" 16}}</span> {{.i18n.Tr "new_migrate"}}
- </a>
- {{if .SignedUser.CanCreateOrganization}}
- <a class="item" href="{{AppSubUrl}}/org/create">
- <span class="fitted">{{svg "octicon-organization" 16}}</span> {{.i18n.Tr "new_org"}}
- </a>
- {{end}}
- </div><!-- end content create new menu -->
- </div><!-- end dropdown menu create new -->
-
- <div class="ui simple dropdown jump item poping up" tabindex="-1" data-content="{{.i18n.Tr "user_profile_and_more"}}" data-variation="tiny inverted">
- <span class="text" style="display:flex;align-items:center;">
- <img class="ui tiny avatar image" width="24" height="24" src="{{.SignedUser.RelAvatarLink}}">
- <span class="sr-only">{{.i18n.Tr "user_profile_and_more"}}</span>
- <span class="mobile-only">{{.SignedUser.Name}}</span>
- <span class="fitted not-mobile" tabindex="-1">{{svg "octicon-triangle-down" 16}}</span>
- </span>
- <div class="menu user-menu" tabindex="-1">
- <div class="ui header">
- {{.i18n.Tr "signed_in_as"}} <strong>{{.SignedUser.Name}}</strong>
- </div>
-
- <div class="divider"></div>
- <a class="item" href="{{AppSubUrl}}/{{.SignedUser.Name}}">
- {{svg "octicon-person" 16}}
- {{.i18n.Tr "your_profile"}}<!-- Your profile -->
- </a>
- <a class="item" href="{{AppSubUrl}}/{{.SignedUser.Name}}?tab=stars">
- {{svg "octicon-star" 16}}
- {{.i18n.Tr "your_starred"}}
- </a>
- <a class="{{if .PageIsUserSettings}}active{{end}} item" href="{{AppSubUrl}}/user/settings">
- {{svg "octicon-settings" 16}}
- {{.i18n.Tr "your_settings"}}<!-- Your settings -->
- </a>
- <!--a class="item" target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io">
- {{svg "octicon-question" 16}}
- {{.i18n.Tr "help"}}<!-- Help -->
- </a-->
- <a class="item" href="https://openi.pcl.ac.cn/zeizei/OpenI_Learning" target="_blank">
- <i class="tutorial_icon">
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16">
- <path fill="none" d="M0 0h24v24H0z"/><path d="M2 3.993A1 1 0 0 1 2.992 3h18.016c.548 0 .992.445.992.993v16.014a1 1 0 0 1-.992.993H2.992A.993.993 0 0 1 2 20.007V3.993zM12 5v14h8V5h-8zm1 2h6v2h-6V7zm0 3h6v2h-6v-2z"/>
- </svg>
- </i>
- {{.i18n.Tr "custom.Platform_Tutorial"}}
- </a>
- <a class="item" href="{{AppSubUrl}}/user/invitation_tpl">
- <i class="icon users"></i>
- {{.i18n.Tr "invite_friends"}}
- </a>
- {{if .IsAdmin}}
- <div class="divider"></div>
-
- <a class="{{if .PageIsAdmin}}active{{end}} item" href="{{AppSubUrl}}/admin">
- <i class="icon settings"></i>
- {{.i18n.Tr "admin_panel"}}<!-- Admin Panel -->
- </a>
- {{end}}
-
- <div class="divider"></div>
- <a class="item link-action" href data-url="{{AppSubUrl}}/user/logout" data-redirect="{{AppSubUrl}}/">
- {{svg "octicon-sign-out" 16}}
- {{.i18n.Tr "sign_out"}}<!-- Sign Out -->
- </a>
- </div><!-- end content avatar menu -->
- </div><!-- end dropdown avatar menu -->
- <div class="ui simple item poping up" data-content="{{.i18n.Tr "help"}}" data-variation="tiny inverted">
- <a target="_blank" href="{{AppSubUrl}}/docs/index.html">
- <div style="display:flex;justify-content:center;align-items:center;font-size:10px;cursor:pointer;width:26px;height:26px;border-radius:100%;text-align:center;background: url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20version%3D%221.1%22%3E%3Cdefs%3E%3CradialGradient%20id%3D%221%22%20cx%3D%220%22%20cy%3D%220%22%20r%3D%221%22%20gradientTransform%3D%22matrix(0.7%2C%20-0.5250000000000001%2C%200.5250000000000001%2C%200.7%2C%200.283%2C%200.767)%22%3E%3Cstop%20stop-color%3D%22%2361d8dc%22%20stop-opacity%3D%221%22%20offset%3D%220%22%3E%3C%2Fstop%3E%3Cstop%20stop-color%3D%22%23498af9%22%20stop-opacity%3D%221%22%20offset%3D%220.63%22%3E%3C%2Fstop%3E%3Cstop%20stop-color%3D%22%23e840f7%22%20stop-opacity%3D%221%22%20offset%3D%221%22%3E%3C%2Fstop%3E%3C%2FradialGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22url(%231)%22%3E%3C%2Frect%3E%3C%2Fsvg%3E");">
- <svg xmlns="http://www.w3.org/2000/svg" class="styles__StyledSVGIconPathComponent-sc-16fsqc8-0 fPsHiw svg-icon-path-icon fill" viewBox="0 0 384 512" width="16" height="16"><defs data-reactroot=""></defs><g><path fill="rgb(255,255,255)" d="M202.021 0C122.202 0 70.503 32.703 29.914 91.026c-7.363 10.58-5.093 25.086 5.178 32.874l43.138 32.709c10.373 7.865 25.132 6.026 33.253-4.148 25.049-31.381 43.63-49.449 82.757-49.449 30.764 0 68.816 19.799 68.816 49.631 0 22.552-18.617 34.134-48.993 51.164-35.423 19.86-82.299 44.576-82.299 106.405V320c0 13.255 10.745 24 24 24h72.471c13.255 0 24-10.745 24-24v-5.773c0-42.86 125.268-44.645 125.268-160.627C377.504 66.256 286.902 0 202.021 0zM192 373.459c-38.196 0-69.271 31.075-69.271 69.271 0 38.195 31.075 69.27 69.271 69.27s69.271-31.075 69.271-69.271-31.075-69.27-69.271-69.27z"></path></g></svg>
- </div>
- </a>
- </div>
- </div><!-- end signed user right menu -->
-
- {{else}}
-
- <!--a class="item" target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io">{{.i18n.Tr "help"}}</a-->
- <div class="right stackable menu">
-
- <form id="searchForm" class="fourteen wide mobile ten wide tablet ten wide computer column ui form ignore-dirty" style="margin:auto" action="/all/search/" method="post">
- <div class="ui fluid action input" style="background:transparent ;border-radius: 5px;width: 200px;height:30px;border:rgb(233,233,233) solid 1px;">
- <input name="q" value="{{.Keyword}}" placeholder="{{.i18n.Tr "explore.search"}}..."
- style="transition: background-color 5000s ease-in-out 0s;-webkit-text-fill-color:white;background:transparent;color:white;border: none;outline: none;">
- <input type="hidden" name="tab" value="{{$.TabName}}">
- <input type="hidden" name="sort" value="hot">
- <button style="border:none;background-color:transparent;outline:none;border-radius:5px;cursor:pointer;">
- <img type="submit" style="width:21px;height:21px;margin:auto;vertical-align:bottom;" src="/img/search.svg" >
- </button>
- </div>
- </form>
- {{if .ShowRegistrationButton}}
- {{if .IsCourse}}
- <a class="item{{if .PageIsSignUp}} active{{end}}" href="https://openi.pcl.ac.cn/user/sign_up" target="_blank">
- {{svg "octicon-person" 16}} {{.i18n.Tr "register"}}
- </a>
- {{else}}
- <a class="item{{if .PageIsSignUp}} active{{end}}" href="{{AppSubUrl}}/user/sign_up">
- {{svg "octicon-person" 16}} {{.i18n.Tr "register"}}
- </a>
- {{end}}
- {{end}}
- {{if .IsCourse}}
- <a class="item{{if .PageIsSignIn}} active{{end}}" rel="nofollow" href="https://openi.pcl.ac.cn/user/login?course=true" target="_blank">
- {{svg "octicon-sign-in" 16}} {{.i18n.Tr "sign_in"}}
- </a>
- {{else}}
- <a class="item{{if .PageIsSignIn}} active{{end}}" rel="nofollow" href="{{AppSubUrl}}/user/login">
- {{svg "octicon-sign-in" 16}} {{.i18n.Tr "sign_in"}}
- </a>
- {{end}}
-
- <div class="ui simple item poping up" data-content="{{.i18n.Tr "help"}}" data-variation="tiny inverted">
- <a target="_blank" href="{{AppSubUrl}}/docs/index.html">
- <div style="display:flex;justify-content:center;align-items:center;font-size:10px;cursor:pointer;width:26px;height:26px;border-radius:100%;text-align:center;background: url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20version%3D%221.1%22%3E%3Cdefs%3E%3CradialGradient%20id%3D%221%22%20cx%3D%220%22%20cy%3D%220%22%20r%3D%221%22%20gradientTransform%3D%22matrix(0.7%2C%20-0.5250000000000001%2C%200.5250000000000001%2C%200.7%2C%200.283%2C%200.767)%22%3E%3Cstop%20stop-color%3D%22%2361d8dc%22%20stop-opacity%3D%221%22%20offset%3D%220%22%3E%3C%2Fstop%3E%3Cstop%20stop-color%3D%22%23498af9%22%20stop-opacity%3D%221%22%20offset%3D%220.63%22%3E%3C%2Fstop%3E%3Cstop%20stop-color%3D%22%23e840f7%22%20stop-opacity%3D%221%22%20offset%3D%221%22%3E%3C%2Fstop%3E%3C%2FradialGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22url(%231)%22%3E%3C%2Frect%3E%3C%2Fsvg%3E");">
- <svg xmlns="http://www.w3.org/2000/svg" class="styles__StyledSVGIconPathComponent-sc-16fsqc8-0 fPsHiw svg-icon-path-icon fill" viewBox="0 0 384 512" width="16" height="16"><defs data-reactroot=""></defs><g><path fill="rgb(255,255,255)" d="M202.021 0C122.202 0 70.503 32.703 29.914 91.026c-7.363 10.58-5.093 25.086 5.178 32.874l43.138 32.709c10.373 7.865 25.132 6.026 33.253-4.148 25.049-31.381 43.63-49.449 82.757-49.449 30.764 0 68.816 19.799 68.816 49.631 0 22.552-18.617 34.134-48.993 51.164-35.423 19.86-82.299 44.576-82.299 106.405V320c0 13.255 10.745 24 24 24h72.471c13.255 0 24-10.745 24-24v-5.773c0-42.86 125.268-44.645 125.268-160.627C377.504 66.256 286.902 0 202.021 0zM192 373.459c-38.196 0-69.271 31.075-69.271 69.271 0 38.195 31.075 69.27 69.271 69.27s69.271-31.075 69.271-69.271-31.075-69.27-69.271-69.27z"></path></g></svg>
- </div>
- </a>
- </div>
-
- </div><!-- end anonymous right menu -->
-
- {{end}}
-
-
-
- </div>
|