Compare commits
10 Commits
advanced-s
...
detect-bet
Author | SHA1 | Date | |
---|---|---|---|
0543c3e89f | |||
2191140232 | |||
6bfadef829 | |||
c38683ae9f | |||
3f5349a5a6 | |||
f88cf6ecad | |||
ec54292a4b | |||
296132d356 | |||
0bc40ba323 | |||
8143e214c2 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,5 +1,4 @@
|
||||
feedback_database.json
|
||||
config_centillion.py
|
||||
config_flask.py
|
||||
vp
|
||||
credentials.json
|
||||
|
@@ -342,5 +342,10 @@ def store_search(query, fields):
|
||||
if __name__ == '__main__':
|
||||
# if running local instance, set to true
|
||||
os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = 'true'
|
||||
app.run(host="0.0.0.0",port=5000)
|
||||
port = os.environ.get('CENTILLION_PORT','')
|
||||
if port=='':
|
||||
port = 5000
|
||||
else:
|
||||
port = int(port)
|
||||
app.run(host="0.0.0.0",port=port)
|
||||
|
||||
|
28
config_centillion.py
Normal file
28
config_centillion.py
Normal file
@@ -0,0 +1,28 @@
|
||||
config = {
|
||||
"repositories" : [
|
||||
"dcppc/project-management",
|
||||
"dcppc/nih-demo-meetings",
|
||||
"dcppc/internal",
|
||||
"dcppc/organize",
|
||||
"dcppc/dcppc-bot",
|
||||
"dcppc/full-stacks",
|
||||
"dcppc/design-guidelines-discuss",
|
||||
"dcppc/dcppc-deliverables",
|
||||
"dcppc/dcppc-milestones",
|
||||
"dcppc/crosscut-metadata",
|
||||
"dcppc/lucky-penny",
|
||||
"dcppc/dcppc-workshops",
|
||||
"dcppc/metadata-matrix",
|
||||
"dcppc/data-stewards",
|
||||
"dcppc/dcppc-phase1-demos",
|
||||
"dcppc/apis",
|
||||
"dcppc/2018-june-workshop",
|
||||
"dcppc/2018-july-workshop",
|
||||
"dcppc/2018-august-workshop",
|
||||
"dcppc/2018-september-workshop",
|
||||
"dcppc/design-guidelines",
|
||||
"dcppc/2018-may-workshop",
|
||||
"dcppc/centillion"
|
||||
]
|
||||
}
|
||||
|
BIN
static/centillion_white_beta.png
Normal file
BIN
static/centillion_white_beta.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 29 KiB |
BIN
static/centillion_white_localhost.png
Normal file
BIN
static/centillion_white_localhost.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
@@ -7,11 +7,18 @@
|
||||
<div class="col12sm" id="banner-col">
|
||||
<center>
|
||||
<a id="banner-a" href="{{ url_for('search')}}?query=&fields=">
|
||||
<img id="banner-img" src="{{ url_for('static', filename='centillion_white.png') }}">
|
||||
{% if 'betasearch' in request.url %}
|
||||
<img id="banner-img" src="{{ url_for('static', filename='centillion_white_beta.png') }}">
|
||||
{% elif 'localhost' in request.url %}
|
||||
<img id="banner-img" src="{{ url_for('static', filename='centillion_white_localhost.png') }}">
|
||||
{% else %}
|
||||
<img id="banner-img" src="{{ url_for('static', filename='centillion_white.png') }}">
|
||||
{% endif %}
|
||||
</a>
|
||||
</center>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if config['TAGLINE'] %}
|
||||
<div class="row" id="tagline-row">
|
||||
<div class="col12sm" id="tagline-col">
|
||||
|
@@ -10,15 +10,12 @@
|
||||
<form action="{{ url_for('search') }}" name="search">
|
||||
<p><input type="text" name="query" value="{{ query }}">
|
||||
</p>
|
||||
<p><button id="the-big-one" type="submit"
|
||||
style="font-size: 20px; padding: 10px; padding-left: 50px; padding-right: 50px;"
|
||||
<p><button id="the-big-one" type="submit" style="font-size: 20px; padding: 10px; padding-left: 50px; padding-right: 50px;"
|
||||
value="search" class="btn btn-primary">Search</button>
|
||||
</p>
|
||||
|
||||
<p><a href="#" onClick="advanced_search()">[Advanced Search]</a>
|
||||
|
||||
{% if parsed_query %}
|
||||
<p><a href="{{ url_for('search')}}?query=&fields=">[Clear All Results]</a>
|
||||
<p><a href="{{ url_for('search')}}?query=&fields=">[clear all results]</a>
|
||||
{% endif %}
|
||||
|
||||
</p>
|
||||
|
Reference in New Issue
Block a user