WIP booking
* CalAuth.aspx: A view ... still unused * style.css: css overflow-y auto, the container making it modal has no margin. * GoogleController.cs: Fixes again the calendar usage, uses Google API key and client credentials found in configuration file * ApiClient.cs: Google API key and client credentials are now found in configuration file * CalendarApi.cs: Let the controller build the credential string from thr profile object. * OAuth2.cs: The OAuth2 Client only needs a client id and secret * yavsc.js: Fixes some css flipping * ValidateAjaxAttribute.cs: A FIXME * Web.config: Google key, client id and secret come from application settings * Web.csproj: a page in more * YavscModel.csproj: * PostInfoByUser.cs: * PostInfoByTitle.cs: * BlogEntryCollection.cs: refactoring
This commit is contained in:
parent
d9d5bb308e
commit
e6c65019b0
16 changed files with 117 additions and 147 deletions
|
|
@ -82,13 +82,13 @@ namespace Yavsc.Model.Blogs
|
|||
/// <summary>
|
||||
/// Groups by title.
|
||||
/// </summary>
|
||||
public IEnumerable<IGrouping<string,PostInfoByTitle>> GroupByTitle ()
|
||||
public IEnumerable<IGrouping<string,BasePostInfo>> GroupByTitle ()
|
||||
{
|
||||
bool truncated;
|
||||
return from be in this
|
||||
orderby be.Posted descending
|
||||
group
|
||||
new PostInfoByTitle { Author = be.Author, Id = be.Id,
|
||||
group
|
||||
new BasePostInfo { Author = be.Author, Id = be.Id,
|
||||
Posted = be.Posted, Modified = be.Modified,
|
||||
Intro = MarkdownHelper.MarkdownIntro (be.Content, out truncated),
|
||||
Visible = be.Visible,
|
||||
|
|
@ -103,13 +103,13 @@ namespace Yavsc.Model.Blogs
|
|||
/// Groups by user.
|
||||
/// </summary>
|
||||
/// <returns>The by user.</returns>
|
||||
public IEnumerable<IGrouping<string,PostInfoByUser>> GroupByUser ()
|
||||
public IEnumerable<IGrouping<string,BasePostInfo>> GroupByUser ()
|
||||
{
|
||||
bool truncated;
|
||||
return from be in this
|
||||
orderby be.Posted descending
|
||||
group
|
||||
new PostInfoByUser {
|
||||
new BasePostInfo {
|
||||
Title = be.Title,
|
||||
Id = be.Id,
|
||||
Posted = be.Posted,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue