Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
391ab846
Commit
391ab846
authored
Aug 05, 2014
by
Ben McMorran
Committed by
cahrens
Aug 07, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Open "View Live Version" and "Preview Changes" in a new window
STUD-2058
parent
9b6c9fea
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
cms/templates/container.html
+2
-2
common/test/acceptance/tests/test_studio_container.py
+1
-0
No files found.
cms/templates/container.html
View file @
391ab846
...
@@ -87,12 +87,12 @@ templates = ["basic-modal", "modal-button", "edit-xblock-modal",
...
@@ -87,12 +87,12 @@ templates = ["basic-modal", "modal-button", "edit-xblock-modal",
<ul>
<ul>
% if is_unit_page:
% if is_unit_page:
<li
class=
"action-item action-view nav-item"
>
<li
class=
"action-item action-view nav-item"
>
<a
href=
"${published_preview_link}"
class=
"button button-view action-button is-disabled"
>
<a
href=
"${published_preview_link}"
class=
"button button-view action-button is-disabled"
rel=
"external"
>
<span
class=
"action-button-text"
>
${_("View Live Version")}
</span>
<span
class=
"action-button-text"
>
${_("View Live Version")}
</span>
</a>
</a>
</li>
</li>
<li
class=
"action-item action-preview nav-item"
>
<li
class=
"action-item action-preview nav-item"
>
<a
href=
"${draft_preview_link}"
class=
"button button-preview action-button is-disabled"
>
<a
href=
"${draft_preview_link}"
class=
"button button-preview action-button is-disabled"
rel=
"external"
>
<span
class=
"action-button-text"
>
${_("Preview Changes")}
</span>
<span
class=
"action-button-text"
>
${_("Preview Changes")}
</span>
</a>
</a>
</li>
</li>
...
...
common/test/acceptance/tests/test_studio_container.py
View file @
391ab846
...
@@ -692,6 +692,7 @@ class UnitPublishingTest(ContainerBase):
...
@@ -692,6 +692,7 @@ class UnitPublishingTest(ContainerBase):
Goes to the published version, then waits for the browser to load the page.
Goes to the published version, then waits for the browser to load the page.
"""
"""
unit
.
view_published_version
()
unit
.
view_published_version
()
self
.
assertEqual
(
len
(
self
.
browser
.
window_handles
),
2
)
self
.
courseware
.
wait_for_page
()
self
.
courseware
.
wait_for_page
()
def
_verify_and_return_staff_page
(
self
):
def
_verify_and_return_staff_page
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment