File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ def get(self):
3535 google_analytics_code = self .settings ['google_analytics_code' ],
3636 google_analytics_domain = self .settings ['google_analytics_domain' ],
3737 extra_footer_scripts = self .settings ['extra_footer_scripts' ],
38+ repo_providers = SPEC_NAMES ,
3839 )
3940
4041
Original file line number Diff line number Diff line change @@ -52,14 +52,9 @@ <h4 id="form-header" class='row'>Build and launch a repository</h4>
5252 < span class ="caret "> </ span >
5353 </ button >
5454 < ul class ="dropdown-menu " id ="provider_prefix_sel ">
55- < li class ="dropdown-item " value ="gh "> < a href ="# "> GitHub</ a > </ li >
56- < li class ="dropdown-item " value ="gist "> < a href ="# "> Gist</ a > </ li >
57- < li class ="dropdown-item " value ="gl "> < a href ="# "> GitLab.com</ a > </ li >
58- < li class ="dropdown-item " value ="git "> < a href ="# "> Git repository</ a > </ li >
59- < li class ="dropdown-item " value ="zenodo "> < a href ="# "> Zenodo DOI</ a > </ li >
60- < li class ="dropdown-item " value ="figshare "> < a href ="# "> Figshare DOI</ a > </ li >
61- < li class ="dropdown-item " value ="hydroshare "> < a href ="# "> Hydroshare resource</ a > </ li >
62- < li class ="dropdown-item " value ="dataverse "> < a href ="# "> Dataverse DOI</ a > </ li >
55+ {% for provider_prefix, provider_name in repo_providers.items() %}
56+ < li class ="dropdown-item " value ={{provider_prefix}} > < a href ="# "> {{provider_name}}</ a > </ li >
57+ {% endfor %}
6358 </ ul >
6459 </ div >
6560 < input class ="form-control " type ="text " id ="repository " data-lpignore ="true " placeholder ="GitHub repository name or link "/>
You can’t perform that action at this time.
0 commit comments