-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathcopyright.py
32 lines (29 loc) · 1.81 KB
/
copyright.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import streamlit.components.v1 as components
import datetime
import streamlit as st
current_year = datetime.datetime.now().year
cite_today = datetime.date.today().strftime("%d %B %Y")
def display_custom_license():
# st.write(f'**Cite this page:** Ozkan, Yusuf A. ‘*Intelligence Studies Network*’, Created 1 June 2020, Accessed {cite_today}. https://intelligence.streamlit.app/.')
# st.write(f'© {current_year} Yusuf Ozkan. All rights reserved. This website is licensed under a [Creative Commons Attribution 4.0 International License](http://creativecommons.org/licenses/by/4.0/).')
components.html(
f"""
<br><a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons Licence" style="border-width:0"
src="https://i.creativecommons.org/l/by/4.0/80x15.png" /></a><br />
© {current_year} IntelArchive. All rights reserved. This website is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.
</br>
<br>
<strong>Cite this page:</strong> IntelArchive ‘<em>Intelligence Studies Network</em>’, Created 1 June 2020, Accessed {cite_today}. <a href="https://intelarchive.app/">https://intelarchive.app/</a>.
</br>
"""
)
def cc_by_licence_image():
components.html(
f"""
<br><a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons Licence" style="border-width:0"
src="https://i.creativecommons.org/l/by/4.0/80x15.png" /></a><br />
© {current_year} IntelArchive. All rights reserved. This website is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.
</br>
<br>
"""
)