-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Clean up front page UI and video elements, remove cruft [OPEN-407, OPEN-358] #6243
Conversation
@@ -26,10 +27,12 @@ | |||
% else: | |||
% if self.stanford_theme_enabled(): | |||
<h1>${_("Free courses from <strong>{university_name}</strong>").format(university_name="Stanford")}</h1> | |||
<h2>${_("For anyone, anywhere, anytime")}</h2> | |||
% else: |
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.
The purpose of this change is to remove our stale, early-2012 marketing text from default Open edX instances. Cribbed some text from the apache welcome page and the django welcome page - I'm open to suggestions here.
@sarina One quick note (and I may be out of context) I noticed that the wording suggests removing "Honor Code". Maybe this is edx.org specific, but the Honor code is part of the Terms of Service page |
e44cd91
to
da22aec
Compare
@singingwolfboy @talbs can you please review? |
<a href="${marketing_link('TOS')}">${_("Terms of Service and Honor Code")}</a> | ||
<a href="${marketing_link('TOS')}">${_("Terms of Service")}</a> | ||
%if marketing_link('HONOR') and marketing_link('HONOR') != '#': | ||
and <a href="${marketing_link('HONOR')}">${_("Honor Code")}</a> |
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.
Right now, "and" isn't being translated. Is that OK?
da22aec
to
e13a722
Compare
honor_link = u"<a href='{}'>".format(marketing_link('HONOR')) | ||
%> | ||
${ | ||
_("{tos_link_start}Terms of Service{tos_link_end} and {honor_link_start}Honor Code{honor_link_end}").format( |
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.
@singingwolfboy how's this?
I am having trouble, however, figuring out how to verify if this logic is even working when there is no honor code link present. Noting it down so I remember to look into it tomorrow - I thought i verified the similar logic at L17 and 24 above previously.
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.
Looks good to me.
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.
OK - was able to verify this. Had to actually fully restart my server to see the %if clause take effect.
775a287
to
141a71e
Compare
@stephensanchez thanks for pointing out the honor code. I made the open source footer conditionally link to the Honor Code if there's a link present to an Honor Code in the marketing urls map. |
@singingwolfboy any other review comments? @nedbat could you please also review this? |
👍 |
@sarina, apologies for the delay - I'll be getting to this shortly on my end. |
@@ -26,10 +27,13 @@ | |||
% else: | |||
% if self.stanford_theme_enabled(): | |||
<h1>${_("Free courses from <strong>{university_name}</strong>").format(university_name="Stanford")}</h1> | |||
<h2>${_("For anyone, anywhere, anytime")}</h2> |
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.
NIT: indentation - looks like you might be missing some spaces.
@sarina, the HTML and Sass/CSS changes here look good. Thanks much for helping to clean up our Open front door. 👍 |
${_("News")} | ||
</a> | ||
</li> | ||
%if marketing_link('JOBS') and marketing_link('JOBS') != '#': |
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 seems mis-indented.
👍 after fixes. |
d7c596d
to
c83030c
Compare
c83030c
to
414e050
Compare
Remove Jobs, News Change "Vision" to "About"
414e050
to
4fcbcaa
Compare
last build had Jenkins system failures in a few shards, so rebuilding. |
Clean up front page UI and video elements, remove cruft [OPEN-407, OPEN-358]
Ref: https://openedx.atlassian.net/secure/attachment/14110/default-view-audit.pdf, https://openedx.atlassian.net/browse/OPEN-407