* Web.csproj:

* packages.config:
* App.master:
* doxy.css:
* Edit.aspx:
* desert.css:
* sunburst.css:
* prettify.css:
* YavscHelpers.cs:
* YavscModel.csproj:
* lang-r.js:
* UserPosts.aspx:
* lang-n.js:
* lang-rd.js:
* lang-vb.js:
* lang-xq.js:
* lang-ml.js:
* lang-go.js:
* lang-hs.js:
* lang-tcl.js:
* lang-tex.js:
* PostActions.ascx:
* lang-clj.js:
* prettify.js:
* lang-css.js:
* lang-sql.js:
* lang-lua.js:
* lang-llvm.js:
* HomeController.cs:
* lang-yaml.js:
* lang-wiki.js:
* lang-dart.js:
* lang-lisp.js:
* lang-vhdl.js:
* lang-mumps.js:
* lang-scala.js:
* lang-basic.js:
* MarkdownHelper.cs:
* lang-proto.js:
* sons-of-obsidian.css:
* lang-apollo.js:
* lang-matlab.js:
* lang-erlang.js:
* lang-pascal.js:
* run_prettify.js: syntax hilighting in Markdown code blocks

* NpgsqlTagInfo.cs: Fixes the photo retreival

* TagPanel.ascx: displays the photo

* IValueProvider.cs: useless, unused

* TestExec.cs: pollution
This commit is contained in:
Paul Schneider 2015-10-19 16:38:35 +02:00
commit 5cb90afe2c
52 changed files with 607 additions and 99 deletions

View file

@ -138,8 +138,8 @@ var updateHtml = function(id,content) {
updateHtml(this.id, this.value);
});
showSource("Title",jQuery('#vtitle').html());
showSource("Content",jQuery('#vcontent').html());
// showSource("Title",jQuery('#vtitle').html());
// showSource("Content",jQuery('#vcontent').html());
});
</script>

View file

@ -6,10 +6,10 @@
if (Membership.GetUser().UserName==Model.Author || Roles.IsUserInRole("Admin"))
{ %>
<% if (Model is BlogEntry) { %><%= Html.Partial("TagControl",Model)%><% } %>
<a href="<%= Url.RouteUrl("BlogById", new { action = "Edit", postid = Model.Id })%>" class="actionlink">
<a href="<%= Url.RouteUrl("Default", new { action = "Edit", postid = Model.Id })%>" class="actionlink">
<i class="fa fa-pencil"><%=Html.Translate("Edit")%></i>
</a>
<a href="<%= Url.RouteUrl("BlogById", new { action = "RemovePost", postid = Model.Id })%>" class="actionlink">
<a href="<%= Url.RouteUrl("Default", new { action = "RemovePost", postid = Model.Id })%>" class="actionlink">
<i class="fa fa-remove"><%=Html.Translate("Remove")%></i></a>
<% }} %>
</aside>

View file

@ -21,12 +21,12 @@
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
<% foreach (BlogEntry e in this.Model) { %>
<div class="postpreview<% if (!e.Visible) { %> hiddenpost<% } %>" >
<h2><a href="<%= Url.RouteUrl("BlogByTitle", new { user=e.Author, title=e.Title, id = e.Id })%>" class="usertitleref">
<h2><a href="<%= Url.RouteUrl("BlogByTitle", new { user=e.Author, title=e.Title, postid = e.Id })%>" class="usertitleref">
<%=Html.Markdown(e.Title)%></a></h2>
<% bool truncated = false; %>
<%= Html.MarkdownToHtmlIntro(out truncated, e.Content,"/bfiles/"+e.Id+"/") %>
<% if (truncated) { %>
<a href="<%= Url.RouteUrl( "BlogByTitle", new { user=e.Author , title=e.Title, id = e.Id}) %>">
<a href="<%= Url.RouteUrl( "BlogByTitle", new { user=e.Author , title=e.Title, postid = e.Id}) %>">
<i>Html.Translate("ReadMore")</i></a>
<% } %>
<%= Html.Partial("PostActions",e)%>

View file

@ -1,8 +1,10 @@
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<TagInfo>" %>
<div class="panel">
<i class="fa fa-tag"><%=Model.Name%></i>
<i class="fa fa-tag"><%=Html.Encode(Model.Name)%></i>
<% foreach (var t in Model.Titles) { %>
<a href="<%= Url.RouteUrl("Titles", new { title = t.Title }) %>"><%= Html.Markdown(t.Title,"/bfiles/"+t.Id+"/")%></a>
<a href="<%= Url.RouteUrl("Titles", new { title = t.Title }) %>">
<img src="<%=Url.Encode(t.Photo)%>" alt="placard" class="photo">
<%= Html.Markdown(t.Title,"/bfiles/"+t.Id+"/")%></a>
<div class="postpreview">
<p><%= Html.Markdown(t.Intro,"/bfiles/"+t.Id+"/") %></p>
</div>