This repository has been archived by the owner on Mar 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change theme version, update authenticatedusersnippet and iframesnippet
- Loading branch information
1 parent
58364bb
commit d022fe4
Showing
8 changed files
with
51 additions
and
13 deletions.
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
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,6 +1,11 @@ | ||
@{ | ||
string redirectUrl = Model.URL; | ||
if (WorkContext.CurrentUser == null) | ||
{ | ||
Response.Redirect("~/Users/Account/LogOn"); | ||
if(String.IsNullOrEmpty(redirectUrl)) { | ||
Response.Redirect("~/Users/Account/LogOn"); | ||
} else { | ||
Response.Redirect("~/" + redirectUrl); | ||
} | ||
} | ||
} |
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,9 @@ | ||
DisplayName: Authenticated User | ||
ToolboxIcon: \uf007 | ||
Description: Authenticated User Snippet | ||
Category: Snippets | ||
Fields: | ||
- Name: URL | ||
DisplayName: URL | ||
Description: If the user is not authenticated will be redirected to this url. Leave empty for default. | ||
Type: Text |
This file was deleted.
Oops, something went wrong.
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,12 @@ | ||
@{ | ||
string url = Model.URL; | ||
string ratio = Model.Ratio; | ||
if(ratio != "16by9" && ratio != "4by3") { | ||
ratio = "4by3"; | ||
} | ||
} | ||
@if (!String.IsNullOrEmpty(url)) { | ||
<div class="embed-responsive embed-responsive-@ratio"> | ||
<iframe class="embed-responsive-item" src="@url" allowfullscreen></iframe> | ||
</div> | ||
} |
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,13 @@ | ||
DisplayName: iFrame | ||
ToolboxIcon: \uf1c9 | ||
Description: iFrame Snippet | ||
Category: Snippets | ||
Fields: | ||
- Name: URL | ||
DisplayName: URL | ||
Description: Enter here the iFrame URL of your provider. | ||
Type: Text | ||
- Name: Ratio | ||
DisplayName: Ratio | ||
Description: Enter the ratio of iFrame 16by9 or 4by3. Leave empty for default. | ||
Type: Text |
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