Skip to content

Commit

Permalink
Merge branch 'master' of github.com:TelerikAcademy/ShowcaseSystem
Browse files Browse the repository at this point in the history
  • Loading branch information
hiksa committed Aug 15, 2015
2 parents 4601532 + 47a93a2 commit c4f9a17
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 12 deletions.
4 changes: 2 additions & 2 deletions Source/Client/Showcase.Client.App/Scripts/_references.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,6 @@
/// <reference path="../app/not-found-page/not-found-controller.js" />
/// <reference path="../app/project-details-page/project-tags-directive.js" />
/// <reference path="../app/user-profile-page/user-profile-collaborators-directive.js" />
/// <reference path="../app/build/vendorjs2015081446.min.js" />
/// <reference path="../app/build/alljs2015081430.min.js" />
/// <reference path="../app/build/vendorjs2015081417.min.js" />
/// <reference path="../app/build/alljs2015081417.min.js" />

6 changes: 3 additions & 3 deletions Source/Client/Showcase.Client.App/Showcase.Client.App.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@
<Content Include="app\add-project-page\add-project-controller.js" />
<Content Include="app\add-project-page\add-project-data.js" />
<Content Include="app\add-project-page\add-project-view.html" />
<Content Include="app\build\allcss2015081430.min.css" />
<Content Include="app\build\alljs2015081430.min.js" />
<Content Include="app\build\vendorjs2015081446.min.js" />
<Content Include="app\build\allcss2015081417.min.css" />
<Content Include="app\build\alljs2015081417.min.js" />
<Content Include="app\build\vendorjs2015081417.min.js" />
<Content Include="app\common\comments-data.js" />
<Content Include="app\add-project-page\file-upload-directive.js" />
<Content Include="app\add-project-page\token-input-directive.js" />
Expand Down
8 changes: 7 additions & 1 deletion Source/Client/Showcase.Client.App/crawlers.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,14 @@

<meta name="title" content="@Model.Title" />
<meta name="description" content="@Model.Description" />
<meta property="og:image" content="/Images/@(Model.MainImageUrl)_high.jpg" />
<meta property="og:title" content="@Model.Title" />
<meta property="og:description" content="@Model.Description" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="Telerik Academy Showcase System" />
<meta property="og:image:url" content="http://@Model.HostUrl/Images/@(Model.MainImageUrl)_high.jpg" />
<meta property="og:image:type" content="image/jpeg" />
<meta property="og:image:width" content="1360" />
<meta property="og:image:height" content="780" />
</head>
<body>
</body>
Expand Down
16 changes: 11 additions & 5 deletions Source/Client/Showcase.Client.App/index-template.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,16 @@
<meta name="keywords" content="Telerik Academy Showcase System" />
<meta name="Author" content="Telerik Academy" />

<meta name="title" content="Telerik Showcase System" />
<meta name="description" content="Showcase system for students\' projects in Telerik Academy" />
<meta property="og:image" content="/content/images/telerik-logo.png" />
<meta name="title" content="Telerik Academy Showcase System" />
<meta name="description" content="Showcase system for students' projects in Telerik Academy" />
<meta property="og:title" content="Telerik Academy Showcase System" />
<meta property="og:description" content="Showcase system for students' projects in Telerik Academy" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="Telerik Academy Showcase System" />
<meta property="og:image:url" content="http://best.telerikacademy.com/content/images/telerik-logo.png" />
<meta property="og:image:type" content="image/png" />
<meta property="og:image:width" content="371" />
<meta property="og:image:height" content="373" />

<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, maximum-scale=1, initial-scale=1, user-scalable=0" />
Expand All @@ -34,8 +40,8 @@
<script src="/scripts/epona/plugins/respond.js"></script>
<![endif]-->
</head>
<body class="smoothscroll">
<div id="wrapper" ng-app="showcaseSystem" ng-cloak ng-controller="MainController as vm">
<body class="smoothscroll" ng-app="showcaseSystem" ng-cloak ng-controller="MainController as vm">
<div id="wrapper">
<div id="header" showcase-header animate="fadeIn"></div>

<div id="content" ng-view></div>
Expand Down
2 changes: 1 addition & 1 deletion Source/Data/Showcase.Data.Common/ValidationConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class ValidationConstants
public const int MinProjectTitleLength = 2;
public const int MaxProjectTitleLength = 70;
public const int MinProjectDescriptionLength = 70;
public const int MaxProjectDescriptionLength = 700;
public const int MaxProjectDescriptionLength = 2500;
public const int MaxProjectUrlLength = 200;
public const int MinProjectCollaboratorsLength = 0;
public const int MinProjectTagsLength = 4;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ public async Task<IHttpActionResult> Get(int id)
.To<ProjectCrawlerResponseModel>()
.FirstOrDefaultAsync();

model.HostUrl = this.Request.RequestUri.Authority;

return this.Ok(model);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ public class ProjectCrawlerResponseModel : IMapFrom<Project>, IHaveCustomMapping

public string Description { get; set; }

public string HostUrl { get; set; }

public string MainImageUrl { get; set; }

public void CreateMappings(IConfiguration configuration)
Expand Down

0 comments on commit c4f9a17

Please sign in to comment.