-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MRG] Ovh logo #286
Merged
Merged
[MRG] Ovh logo #286
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
8bd8c5b
added ovhcloud file
maikia a464a51
added ovhcloud logo to the frontpage and removed other powered_by logos
maikia 759e276
updated ovhcloud link
maikia 9e3ee3d
correcting display of ovhcloud
maikia 7f17f62
added dynamic loading of the images from powered_by dir
maikia be6fd05
placing the graphics instead of the link
maikia 56c8adc
removed displaying of the img name
maikia 15ca0c3
cleaning up
maikia 4250ade
cleaning up
maikia 162161b
cleaning up
maikia 7bbb8e0
limited types of images to be used in powered_by
maikia 4e43246
cleaning up
maikia 8fee58f
added .gitignore to ignore all the files in the powered_by directory …
maikia bbb1b50
section powered-by is not displayed if no logos in powered-by directory
maikia 855a302
added docs about personalizing frontpage (only powered_by for now)
maikia 622bc95
removed image files for powered_by from rep
maikia 70e4621
updated the docs
maikia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
################################### | ||
Personalize your RAMP front webpage | ||
################################### | ||
|
||
It is possible to personalize your RAMP front page. | ||
|
||
Powered by | ||
---------- | ||
You might be interested in displaying some images (logos) in the ``Powered by`` | ||
section in the very bottom of your RAMP webpage. | ||
|
||
To do so, add all the images you wish to have displayed to the following | ||
directory:: | ||
|
||
ramp-board/ramp-frontend/ramp_frontend/static/img/powered_by | ||
|
||
Your images must have one of the following extensions: | ||
|
||
* .png | ||
* .jpg' (.jpeg) | ||
* .gif | ||
* .svg | ||
|
||
When you reload your RAMP page the new ``Powered by`` section should appear |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
* | ||
*/ | ||
!.gitignore |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
from flask import Blueprint | ||
from flask import render_template | ||
import os as os | ||
|
||
from ramp_database.model import Keyword | ||
|
||
|
@@ -11,7 +12,12 @@ | |
@mod.route('/') | ||
def index(): | ||
"""Default landing page.""" | ||
return render_template('index.html') | ||
img_ext = ('.png', '.jpg', '.jpeg', '.gif', '.svg') | ||
images = [f for f in os.listdir( | ||
'ramp-frontend/ramp_frontend/static/img/powered_by/') | ||
if f.endswith(img_ext)] | ||
print(images) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also maybe remove the print? |
||
return render_template('index.html', images=images) | ||
|
||
|
||
@mod.route("/description") | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This path should be with respect to
__file__
, otherwise it does not exist #300