Move old package repo to MVC
This commit is contained in:
@@ -532,10 +532,10 @@
|
||||
<Content Include="masterpages\__Release.master" />
|
||||
<Content Include="masterpages\ReleaseLanding-bak.master" />
|
||||
<Content Include="masterpages\__ReleaseLanding.master" />
|
||||
<Content Include="masterpages\Repository.master" />
|
||||
<Content Include="masterpages\RepositoryFrontpage.master" />
|
||||
<Content Include="masterpages\RepositoryMaster.master" />
|
||||
<Content Include="masterpages\repositoryPage.master" />
|
||||
<Content Include="masterpages\__Repository.master" />
|
||||
<Content Include="masterpages\__RepositoryFrontpage.master" />
|
||||
<Content Include="masterpages\__RepositoryMaster.master" />
|
||||
<Content Include="masterpages\__repositoryPage.master" />
|
||||
<Content Include="masterpages\Repository\blank.master" />
|
||||
<Content Include="masterpages\Repository\Community.master" />
|
||||
<Content Include="masterpages\Repository\Deli.master" />
|
||||
@@ -1767,6 +1767,7 @@
|
||||
<Content Include="Views\EditProject.cshtml" />
|
||||
<Content Include="Views\FileDownload.cshtml" />
|
||||
<None Include="Views\Partials\Forum\MemberBadge.cshtml" />
|
||||
<None Include="Views\RepositoryMaster.cshtml" />
|
||||
<Content Include="Views\Web.config" />
|
||||
<Content Include="web.config">
|
||||
<SubType>Designer</SubType>
|
||||
@@ -4433,6 +4434,10 @@
|
||||
<Content Include="Views\ProjectPage.cshtml" />
|
||||
<Content Include="Views\ReleaseDownload.cshtml" />
|
||||
<Content Include="Views\PublicMemberProfile.cshtml" />
|
||||
<Content Include="Views\ReleaseCompare.cshtml" />
|
||||
<Content Include="Views\Repository.cshtml" />
|
||||
<Content Include="Views\RepositoryFrontpage.cshtml" />
|
||||
<Content Include="Views\RepositoryPage.cshtml" />
|
||||
<None Include="web.Debug.config">
|
||||
<DependentUpon>web.config</DependentUpon>
|
||||
</None>
|
||||
|
||||
@@ -3,7 +3,14 @@
|
||||
@{
|
||||
if (Members.IsLoggedIn())
|
||||
{
|
||||
Response.Redirect("/member/profile");
|
||||
if (Model.MacroParameters["NextPage"] != null && string.IsNullOrWhiteSpace(Model.MacroParameters["NextPage"].ToString()) == false)
|
||||
{
|
||||
// It's being called from the old package repository, don't redirect
|
||||
}
|
||||
else
|
||||
{
|
||||
Response.Redirect("/member/profile");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
@inherits UmbracoTemplatePage
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Umbraco Package Repository</title>
|
||||
|
||||
<link href="/umbraco_client/ui/default.css" type="text/css" rel="stylesheet" />
|
||||
<link href="/umbraco_client/panel/style.css" type="text/css" rel="stylesheet" />
|
||||
<link href="/css/repository.css" type="text/css" rel="stylesheet" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="TheForm">
|
||||
<div id="table1" class="propertyPane guiDialogNormal">
|
||||
<div class="propertyContent">
|
||||
@Umbraco.RenderMacro("Repository")
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,9 @@
|
||||
@inherits UmbracoTemplatePage
|
||||
@{
|
||||
Layout = "~/Views/RepositoryMaster.cshtml";
|
||||
}
|
||||
@Umbraco.RenderMacro("Repository-PopularPackages")
|
||||
<div id="repoForm">
|
||||
<h3>Log in using your our.umbraco.org credentials</h3>
|
||||
@Umbraco.RenderMacro("MemberLogin", new { NextPage = "30186", ErrorMessage = "Unknown Login" })
|
||||
</div>
|
||||
@@ -0,0 +1,84 @@
|
||||
@inherits UmbracoTemplatePage
|
||||
@inherits UmbracoTemplatePage
|
||||
@{
|
||||
HttpContext.Current.Response.AddHeader("p3p", "CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\"");
|
||||
}<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Umbraco Package Repository</title>
|
||||
<link href="/css/repo-styles.css" type="text/css" rel="stylesheet" />
|
||||
<link href="/css/qtip2.css" type="text/css" rel="stylesheet" />
|
||||
<script type="text/javascript">
|
||||
var _callback = '@(Request.QueryString["callback"])';
|
||||
var _qs = '@(Request.RawUrl.Substring( Request.RawUrl.IndexOf('?')+1 ))';
|
||||
</script>
|
||||
<script type="text/javascript" src="/scripts/libs/jquery-1.6.1.min.js"></script>
|
||||
<script type="text/javascript" src="https://ajax.microsoft.com/ajax/jquery.templates/beta1/jquery.tmpl.min.js"></script>
|
||||
<script type="text/javascript" src="/scripts/repo/typewatch.js"></script>
|
||||
<script type="text/javascript" src="/scripts/libs/qtip2.js"></script>
|
||||
<!-- packagetips -->
|
||||
<script type="text/javascript" src="/scripts/repo/packageTips.js"></script>
|
||||
<script type="text/javascript" src="/scripts/repo/repoSearch.js"></script>
|
||||
<script id="search-result" type="text/x-jquery-tmpl">
|
||||
<li class="clearfix">
|
||||
<div class="deliPackage">
|
||||
<div class="brief">
|
||||
{{if Fields.image == null}}
|
||||
<a href="/repo_viewproject?@(Request.RawUrl.Substring( Request.RawUrl.IndexOf('?')+1 ))&project_id={{= Id}}" class="packageIcon" style="background: url(/css/img/package2.png?bgcolor=fff&width=50&height=50&format=png;) no-repeat top left;">
|
||||
Package
|
||||
</a>
|
||||
{{/if}}
|
||||
{{if Fields.image != null}}
|
||||
<a href="/repo_viewproject?@(Request.RawUrl.Substring( Request.RawUrl.IndexOf('?')+1 ))&project_id={{= Id}}" class="packageIcon" style="background: url({{= Fields.image}}?bgcolor=fff&width=50&height=50&format=png;) no-repeat top left;">
|
||||
Package
|
||||
</a>
|
||||
{{/if}}
|
||||
<h3>
|
||||
<a href="/repo_viewproject?@(Request.RawUrl.Substring( Request.RawUrl.IndexOf('?')+1 ))&project_id={{= Id}}">{{= Fields.nodeName}}</a>
|
||||
</h3>
|
||||
<div class="category">
|
||||
{{= Fields.category}}
|
||||
</div>
|
||||
<div class="commercialIndicator free">
|
||||
{{= Fields.listingType}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="hiLite">
|
||||
<p>
|
||||
<a href="/repo_viewproject?@(Request.RawUrl.Substring( Request.RawUrl.IndexOf('?')+1 ))&project_id={{= Id}}" title="{{= Fields.nodeName}}" rel="{{= Fields.uniqueId}}">{{= Fields.body}}</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="popularity">
|
||||
<div class="karma">
|
||||
{{= Fields.karma}} <small>Karma</small>
|
||||
</div>
|
||||
<div class="downloads">
|
||||
{{= Fields.downloads}} <small>Downloads</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</script>
|
||||
@RenderSection("head", false)
|
||||
</head>
|
||||
<body>
|
||||
<form runat="server">
|
||||
<div id="TheForm">
|
||||
<div id="search">
|
||||
<div><input type="text" id="search-field" value="Search..." /><!-- <em>or</em> <a href="#">browse</a>--></div>
|
||||
</div>
|
||||
<div id="body">
|
||||
<ul class="projects" id="search-result-holder" style="display: none;"></ul>
|
||||
<div id="search-no-results">
|
||||
<h3>No luck!</h3>
|
||||
<p>There's no project that matches <strong><span id="search-query"></span></strong>.</p>
|
||||
<p>Maybe it doesn't exist, maybe it hasn't been approved yet. After all, it does take community kudos from at least 15 people to make it inside this repository</p>
|
||||
</div>
|
||||
<div id="repo-content">
|
||||
@RenderBody()
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,18 @@
|
||||
@inherits UmbracoTemplatePage
|
||||
@{
|
||||
Layout = "~/Views/RepositoryMaster.cshtml";
|
||||
}
|
||||
@section head
|
||||
{
|
||||
<link rel="stylesheet" type="text/css" href="/css/shadowbox.css" />
|
||||
<script type="text/javascript" src="/scripts/shadowbox/shadowbox.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
Shadowbox.init({ overlayColor: '#000000', overlayOpacity: '0.7', onFinish: addClickClose });
|
||||
|
||||
function addClickClose() {
|
||||
$('#sb-content').unbind('click').click(function () { Shadowbox.close(); });
|
||||
}
|
||||
</script>
|
||||
}
|
||||
@Umbraco.Field("bodyText")
|
||||
Reference in New Issue
Block a user