Files
OurUmbraco/OurUmbraco.Client/build/forum-thread.html
T
Simon Busborg ee64a3194e Markdown Editor, Solved threads, Buttons
Even better readabilty to the markdown editor
Added spacing between multiple solved threads in a row
Removed tiny button to support to large font style
2015-06-25 13:38:20 +02:00

1336 lines
43 KiB
HTML

<!doctype html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title></title>
<meta name="description" content="">
<meta name="author" content="">
<meta name="robots" content="noindex">
<link href='http://fonts.googleapis.com/css?family=Asap:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="assets/css/style.min.css" />
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.7.1/modernizr.min.js"></script>
<![endif]-->
</head>
<body class="forum-page">
<div class="quick-menu">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="close">
<i class="icon-Delete"></i>Close
</div>
<div class="settings">
<a href="profile.html"><i class="icon-Settings"></i>Edit profile</a>
</div>
<div class="user-image">
<img src="https://s3.amazonaws.com/uifaces/faces/twitter/anoff/128.jpg" alt="">
</div>
<div class="user-profile">
<h2>Darth Vader</h2>
<div class="karma">
2410
</div>
<div class="user-twitter">
<a href="#">@darthvader</a>
</div>
<span class="roles">
<span class="core">core</span>
<span class="mvp">mvp</span>
<span class="admin">admin</span>
<span class="hq">hq</span>
<span class="c-trib">c-trib</span>
</span>
</div>
<small>
Activity in threads you participated in
</small>
<div class="user-latest-posts">
<a href="forum-thread.html" class="forum-thread">
<div class="row">
<div class="col-xs-10 col-md-8">
<div class="forum-thread-text">
<h3>Allow user to change site design</h3>
<p>Reply by Dennis Aaen 7 minutes ago</p>
</div>
</div>
<div class="col-xs-2 col-md-4">
<div class="category frontend"><span class="cat">Frontend</span></div>
</div>
</div>
</a>
<a href="forum-thread.html" class="forum-thread">
<div class="row">
<div class="col-xs-10 col-md-8">
<div class="forum-thread-text">
<h3>Allow user to change site design</h3>
<p>Reply by Dennis Aaen 7 minutes ago</p>
</div>
</div>
<div class="col-xs-2 col-md-4">
<div class="category frontend"><span class="cat">Frontend</span></div>
</div>
</div>
</a>
<a href="forum-thread.html" class="forum-thread">
<div class="row">
<div class="col-xs-10 col-md-8">
<div class="forum-thread-text">
<h3>Allow user to change site design</h3>
<p>Reply by Dennis Aaen 7 minutes ago</p>
</div>
</div>
<div class="col-xs-2 col-md-4">
<div class="category frontend"><span class="cat">Frontend</span></div>
</div>
</div>
</a>
</div>
</div>
</div>
</div>
</div>
<div id="overlay" class="overlay"></div>
<!-- COPY LINK -->
<div id="copy-link-wrapper" class="copy-link-wrapper">
<!-- <h2>Copy link</h2> -->
<i class="icon-Link"></i>
<textarea class="getLink" readonly type="text" rows="1"></textarea>
<p>Press Ctrl / CMD + C to copy this to your clipboard.</p>
</div>
<div id="thankyou">
Copied to clipboard
</div>
<!-- COPY LINK END -->
<!-- DELETE THREAD/COMMENT START -->
<div id="confirm-wrapper" class="confirm-wrapper">
<h4>Are you sure?</h4>
<p>This <span class="type-of"></span> will be gone forever and ever</p>
<br />
<button class="button green" href="#">Yes</button>
<button class="button red" href="#">No</button>
</div>
<!-- DELETE THREAD/COMMENT END -->
<div class="wrapper">
<header>
<div class="navigation">
<div class="container">
<div class="row">
<div class="col-md-3">
<a class="logo" href="index.html">
Our Umbraco
</a>
</div>
<div id="toggle" class="menu-toggle">
<a href="#" class="toggle cross"><span></span></a>
</div>
<nav class="col-md-9">
<ul>
<li><a href="forum.html">Forum</a></li>
<li><a href="#">Packages</a></li>
<li><a href="documentation.html">Docs</a></li>
<li><a href="#">Download</a></li>
<li><a href="#">Contribute</a></li>
<!-- <li><a href="#">Sign in</a></li> -->
<li>
<div class="user">
<img src="https://s3.amazonaws.com/uifaces/faces/twitter/anoff/128.jpg" alt="">
<span class="notificationCount">
4
</span>
</div>
</li>
</ul>
</nav>
</div>
</div>
</div>
</header>
<div class="alertbar__blue">
<h2>Notice: Planned maintenance</h2>
<p>Our will be down tomorrow morning between 08:00-10:00 AM (GMT+1) for planned maintenance.</p>
<p>For more information, go to <a href="#">our.info</a></p>
</div>
<section class="forum-overview">
<div class="forum-single-thread">
<div class="utilities">
<ul id="breadcrumb">
<li><a href="/">Our</a></li>
<li><a href="/projects/">Projects</a></li>
<li><a href="/projects/website-utilities/">Website utilities in</a></li>
<li><a href="/projects/website-utilities/simplest-store/">Simplest Store</a></li>
<li><a href="/projects/website-utilities/simplest-store/improvements-and-sugestions/">Improvements and sugestions</a></li>
</ul>
<div class="utility-actions">
<a href="#comment-@topic.Answer.ToString()" class="go-to-solution button transparent">
<i class="icon-Check"></i><span>Go to solution</span>
</a>
<button class="delete-thread button">
<i class="icon-Delete-key"></i><span>Delete thread</span>
</button>
<button class="follow button following">
<i class="icon-Bookmark"></i><span>Following</span>
</button>
<button class="follow button transparent">
<i class="icon-Bookmark"></i><span>Follow</span>
</button>
</div>
</div>
<ul class="comments">
<li class="comment question"> <!-- Start of question -->
<div class="meta">
<div class="profile">
<a href="#">Darth Vader</a> <span class="hide-xs"><span class="hide-xs">has in total, </span></span>2452 karma points
</div>
<div class="time">
Sep 08, 2014 @ 15:52
</div>
</div>
<div class="comment-inner">
<a href="#" class="photo">
<img src="http://our.umbraco.org/media/avatar/140776.jpg">
</a>
<div class="highfive">
<div class="highfive-count">
5
</div>
<a href="#"><img src="assets/images/highfive.svg" alt="" />High Five</a>
</div>
<div class="body-meta">
<div class="topic">
<h2>
After installing Demo Razor Store: "The type or namespace name 'Raven' could not be found" (When Building in Visual Studio)
</h2>
</div>
<div class="categories">
<div class="category core">
<a href="#">uCommerce Support</a>
</div>
<div class="version">
<a href="#">Umbraco 7</a>
</div>
</div>
</div>
<div class="body">
<p>Hi all,</p>
<p>Im doing a website with a structure much like the Standard Farao Umbraco website. The site structure contains different doc types (story pages, text pages, cases etc ...)</p>
<p>One of the page types "Story Page" contains multiple frames. Each frame is a part of the story and can vary in content and behaviour. Also sometimes a frame contains multiple frames sideways before continuing downwards. Stories can contain up to 15 frames. Frames are not required to be reusable.</p>
<p>I've tested a lot and are fully confident with creating property editors for the grid or even macros maybe.</p>
<p>Also - a huge concern is that all the definition of a grid data type is stored in db - ie not possible? to copy to another datatype (i will need multiple). (why why why is it not filebased..... )</p>
<p>Would you use the grid?</p>
<p>Anyone been doing anything crazy huge with the grid and could share some experience - do's and donts?</p>
<p>Certainly would like to avoid <a href="#">https://www.youtube.com/watch?v=Z7JSodkbrgs&feature=youtu.be&t=13m51s</a></p>
<p>best <br>
Jesper</p>
<p>ps. Im used to deal with stuff like this by creating sub content in the structure but I really would like to avoid it if possible.</p>
</div>
</div>
<div class="actions">
<a href="#" class="delete-reply">
<i class="icon-Delete-key"></i><span>Delete post</span>
</a>
<a href="#" class="mark-as-spam">
<i class="icon-Alert-alt"></i><span>Mark as spam</span>
</a>
<a href="#" class="edit-post">
<i class="icon-Edit"></i><span>Edit post</span>
</a>
<a href="#" id="copy-link" class="copy-link">
<i class="icon-Link"></i><span>Copy Link</span>
</a>
<a href="#" class="reply">
<i class="icon-Reply-arrow"></i><span>Reply</span>
</a>
</div>
</li> <!-- End of question -->
<li class="comment">
<div class="meta">
<div class="profile">
<a href="#">Jan Skovgaard</a> <span class="hide-xs">has in total, </span>12452 karma points
<span class="roles">
<span class="admin">admin</span>
<span class="mvp">mvp</span>
<span class="c-trib">c-trib</span>
</span>
</div>
<div class="time">
12 Minutes ago
</div>
</div>
<div class="comment-inner">
<a href="#" class="photo">
<img src="http://our.umbraco.org/media/avatar/2224.jpg">
</a>
<div class="highfive">
<div class="highfive-count">
5
</div>
<a href="#"><img src="assets/images/highfive.svg" alt="" />High Five</a>
</div>
<div class="body markdown-syntax">
<div class="alert">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sunt temporibus excepturi, assumenda quibusdam? Nesciunt ducimus repellendus possimus totam, architecto, earum amet vero quia placeat tempore. A magni, tempore itaque sint.
<br> <br>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sunt temporibus excepturi, assumenda quibusdam? Nesciunt ducimus repellendus possimus totam, architecto, earum amet vero quia placeat tempore. A magni, tempore itaque sint.
</div>
<p>Hi Bjarne</p>
<p>When you generate the gift card using the GiftCardService.Instance.Generate it is possible to assign an order id. Buy having this you will be able to load the order and look for the info here.</p>
<p>Kind regards<br>Anders</p>
</div>
</div>
<div class="actions">
<a href="#" class="solved">
<i class="icon-Check"></i><span>Mark as solution</span>
</a>
<a href="#" class="mark-as-spam">
<i class="icon-Alert-alt"></i><span>Mark as spam</span>
</a>
<a href="#" class="edit-post">
<i class="icon-Edit"></i><span>Edit post</span>
</a>
<a href="#" id="copy-link" class="copy-link">
<i class="icon-Link"></i><span>Copy Link</span>
</a>
<a href="#" class="reply">
<i class="icon-Reply-arrow"></i><span>Reply</span>
</a>
</div>
</li>
<li class="comment solution level-2" id="solution">
<div class="meta">
<div class="profile">
<a href="#">Simon Busborg</a>
<span>9999 karma points</span>
<span class="roles">
<span class="hq">HQ</span>
<span class="admin">admin</span>
<span class="mvp">mvp</span>
<span class="core">Core</span>
<span class="c-trib">c-trib</span>
</span>
</div>
<div class="time">
Sep 08, 2014 @ 15:52
</div>
</div>
<div class="comment-inner">
<a href="#" class="photo">
<img src="http://our.umbraco.org/media/avatar/132029.jpg">
</a>
<div class="highfive">
<div class="highfive-count">
5
</div>
<a href="#"><img src="assets/images/highfive.svg" alt="" />High Five</a>
</div>
<div class="body markdown-syntax">
<p>Hi Bjarne</p>
<p>When you generate the gift card using the GiftCardService.Instance.Generate it is possible to assign an order id. Buy having this you will be able to load the order and look for the info here.</p>
<pre><code>[
{
"label": "Class",
"description": "Set a css class",
"key": "class",
"view": "textstring",
"modifier": "col-sm-{0}",
"applyTo": "row|cell"
}
]
</code></pre>
<p>When you generate the gift card using the GiftCardService.Instance.Generate it is possible to assign an order id. Buy having this you will be able to load the order and look for the info here.</p>
<pre><code>[
{
"label": "Class",
"description": "Set a css class",
"key": "class",
"view": "textstring",
"modifier": "col-sm-{0}",
"applyTo": "row|cell"
}
]
</code></pre>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut <code>/bin/Microsoft.Web.Helpers.dll</code> aliquip ex ea commodo consequat. <a href="#">Duis aute irure dolor</a> in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<img src="http://d1u3hjf0ap9toz.cloudfront.net/wp-content/uploads/2014/09/ping.gif" alt="">
<p>Kind regards<br>Anders</p>
</div>
</div>
<div class="actions">
<a href="#" class="solved">
<i class="icon-Wrong"></i><span>Unmark as solution</span>
</a>
<a href="#" class="mark-as-spam">
<i class="icon-Alert-alt"></i><span>Mark as spam</span>
</a>
<a href="#" class="edit-post">
<i class="icon-Edit"></i><span>Edit post</span>
</a>
<a href="#" id="copy-link" class="copy-link">
<i class="icon-Link"></i><span>Copy Link</span>
</a>
<a href="#" class="reply">
<i class="icon-Reply-arrow"></i><span>Reply</span>
</a>
</div>
</li>
<li class="comment level-2">
<div class="meta">
<div class="profile">
<a href="#">Darth Vader</a> <span class="hide-xs">has in total, </span>2452 karma points
</div>
<div class="time">
4 Hours ago
</div>
</div>
<div class="comment-inner">
<a href="#" class="photo">
<img src="http://our.umbraco.org/media/avatar/4297.jpg">
</a>
<div class="highfive">
<div class="highfive-count">
5
</div>
<a href="#"><img src="assets/images/highfive.svg" alt="" />High Five</a>
</div>
<div class="body markdown-syntax">
<p>Hi Bjarne</p>
<p>When you generate the gift card using the GiftCardService.Instance.Generate it is possible to assign an order id. Buy having this you will be able to load the order and look for the info here.</p>
<p>Kind regards<br>Anders</p>
</div>
</div>
<div class="actions">
<a href="#" class="solved">
<i class="icon-Check"></i><span>Mark as solution</span>
</a>
<a href="#" id="copy-link" class="copy-link">
<i class="icon-Link"></i><span>Copy Link</span>
</a>
<a href="#" class="reply">
<i class="icon-Reply-arrow"></i><span>Reply</span>
</a>
</div>
</li>
<li class="comment level-2">
<div class="meta">
<div class="profile">
<a href="#">Darth Vader</a> <span class="hide-xs">has in total, </span>2452 karma points
<span class="roles">
<span class="c-trib">c-trib</span>
</span>
</div>
<div class="time">
4 Hours ago
</div>
</div>
<div class="comment-inner">
<a href="#" class="photo">
<img src="http://our.umbraco.org/media/avatar/13023.jpg">
</a>
<div class="highfive">
<div class="highfive-count">
5
</div>
<a href="#"><img src="assets/images/highfive.svg" alt="" />High Five</a>
</div>
<div class="body markdown-syntax">
<p>Hi Bjarne</p>
<p>When you generate the gift card using the GiftCardService.Instance.Generate it is possible to assign an order id. Buy having this you will be able to load the order and look for the info here.</p>
<img src="http://localhost:5000/assets/images/documentation/Grid-layout-NO-SIDEBAR-rows.jpg" alt="">
<p>I'm just not quite sure where to start (never created a property editor before). Can someone point me in the right direction - <a href="#">latest applicable docs</a> / or maybe someone has done something like this before?</p>
<pre><code><%@ Register Src="Vil-samba.ascx" TagPrefix="uc1" TagName="Vilsamba"%></code></pre>
<p> just add the entire project to a folder on the umbraco server. I excluded the folder with the umbracoReservedPaths and the project is working fine. But when I add the usercontrol into Umbraco it doesn't. I stripped out every other code so the only thing left is the usercontrol, but it still doesn't work.
The problem is caused by the macro. I put the usercontrol directly into the template and it works :):</p>
<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Umbraco.Core;
using Umbraco.Web.Mvc;
using TestProject.classLib;
namespace TestProject.Controllers
{
public class CustomApplicationEventHandler : ApplicationEventHandler
{
protected override void ApplicationStarting(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
{
DefaultRenderMvcControllerResolver.Current.SetDefaultControllerType(typeof(IPRedirectController));
base.ApplicationStarting(umbracoApplication, applicationContext);
}
}
public class IPRedirectController : RenderMvcController
{
public ActionResult Index() {
// Check for cookie
Cookies cookie = new Cookies();
if(cookie.ReadCookie()!=null) {
// If cookie exists, look up appropriate site for country and redirect
} else {
// Or get the user's country
IPRedirect getCountry = new IPRedirect();
string country = getCountry.GetUsersCountry();
// Look up the appropriate site for the user's country and redirect
}
string returnUrl = "http://localhost:50383/de-de";
return this.Redirect(returnUrl);
}
}
}
</code></pre>
<p>Kind regards<br>Anders</p>
</div>
</div>
<div class="actions">
<a href="#" class="solved">
<i class="icon-Check"></i><span>Mark as solution</span>
</a>
<a href="#" id="copy-link" class="copy-link">
<i class="icon-Link"></i><span>Copy Link</span>
</a>
<a href="#" class="reply">
<i class="icon-Reply-arrow"></i><span>Reply</span>
</a>
</div>
</li>
<li class="comment level-2">
<div class="meta">
<div class="profile">
<a href="#">Darth Vader</a> <span class="hide-xs">has in total, </span>2452 karma points
</div>
<div class="time">
4 Hours ago
</div>
</div>
<div class="comment-inner">
<a href="#" class="photo">
<img src="http://our.umbraco.org/media/avatar/3042.jpg">
</a>
<div class="highfive">
<div class="highfive-count">
5
</div>
<a href="#"><img src="assets/images/highfive.svg" alt="" />High Five</a>
</div>
<div class="body markdown-syntax">
<p>Hi Bjarne</p>
<p>When you generate the gift card using the GiftCardService.Instance.Generate it is possible to assign an order id. Buy having this you will be able to load the order and look for the info here.</p>
<p>Kind regards<br>Anders</p>
</div>
</div>
<div class="actions">
<a href="#" class="solved">
<i class="icon-Check"></i><span>Mark as solution</span>
</a>
<a href="#" id="copy-link" class="copy-link">
<i class="icon-Link"></i><span>Copy Link</span>
</a>
<a href="#" class="reply">
<i class="icon-Reply-arrow"></i><span>Reply</span>
</a>
</div>
</li>
<li class="comment level-2">
<div class="meta">
<div class="profile">
<a href="#">Darth Vader</a> <span class="hide-xs">has in total, </span>2452 karma points
<span class="roles">
<span class="mvp">mvp</span>
</span>
</div>
<div class="time">
4 Hours ago
</div>
</div>
<div class="comment-inner">
<a href="#" class="photo">
<img src="http://our.umbraco.org/media/avatar/2054.jpg">
</a>
<div class="highfive">
<div class="highfive-count">
5
</div>
<a href="#"><img src="assets/images/highfive.svg" alt="" />High Five</a>
</div>
<div class="body markdown-syntax">
<p>Hi Bjarne</p>
<p>When you generate the gift card using the GiftCardService.Instance.Generate it is possible to assign an order id. <code>/bin/Microsoft.Web.Helpers.dll</code> Buy having this you will be able to load the order and look for the info here.</p>
<img src="https://s3.amazonaws.com/f.cl.ly/items/2D3i063P1g0u2j1x2S13/photo-1416592525293-e65266465eb7-2-1400x935.jpeg" alt="">
<p>Kind regards<br>Anders</p>
</div>
</div>
<div class="actions">
<a href="#" class="solved">
<i class="icon-Check"></i><span>Mark as solution</span>
</a>
<a href="#" id="copy-link" class="copy-link">
<i class="icon-Link"></i><span>Copy Link</span>
</a>
<a href="#" class="reply">
<i class="icon-Reply-arrow"></i><span>Reply</span>
</a>
</div>
</li>
<li class="comment">
<div class="meta">
<div class="profile">
<a href="#">Darth Vader</a> <span class="hide-xs">has in total, </span>2452 karma points
</div>
<div class="time">
4 Hours ago
</div>
</div>
<div class="comment-inner">
<a href="#" class="photo">
<img src="http://our.umbraco.org/media/avatar/8157.jpg">
</a>
<div class="highfive">
<div class="highfive-count">
5
</div>
<a href="#"><img src="assets/images/highfive.svg" alt="" />High Five</a>
</div>
<div class="body markdown-syntax">
<p>Hi Bjarne</p>
<p>When you generate the gift card using the GiftCardService.Instance.Generate it is possible to assign an order id. Buy having this you will be able to load the order and look for the info here.</p>
<p>Kind regards<br>Anders</p>
</div>
</div>
<div class="actions">
<a href="#" class="solved">
<i class="icon-Check"></i><span>Mark as solution</span>
</a>
<a href="#" id="copy-link" class="copy-link">
<i class="icon-Link"></i><span>Copy Link</span>
</a>
<a href="#" class="reply">
<i class="icon-Reply-arrow"></i><span>Reply</span>
</a>
</div>
</li>
<li class="comment">
<div class="meta">
<div class="profile">
<a href="#">Darth Vader</a> <span class="hide-xs">has in total, </span>2452 karma points
</div>
<div class="time">
4 Hours ago
</div>
</div>
<div class="comment-inner">
<a href="#" class="photo">
<img src="http://our.umbraco.org/media/avatar/140776.jpg ">
</a>
<div class="highfive">
<div class="highfive-count">
5
</div>
<a href="#"><img src="assets/images/highfive.svg" alt="" />High Five</a>
</div>
<div class="body markdown-syntax">
<p>Hi Bjarne</p>
<p>When you generate the gift card using the GiftCardService.Instance.Generate it is possible to assign an order id. Buy having this you will be able to load the order and look for the info here.</p>
<p>Kind regards<br>Anders</p>
</div>
</div>
<div class="actions">
<a href="#" class="solved">
<i class="icon-Check"></i><span>Mark as solution</span>
</a>
<a href="#" id="copy-link" class="copy-link">
<i class="icon-Link"></i><span>Copy Link</span>
</a>
<a href="#" class="reply">
<i class="icon-Reply-arrow"></i><span>Reply</span>
</a>
</div>
</li>
<li class="comment">
<div class="meta">
<div class="profile">
<a href="#">Darth Vader</a> <span class="hide-xs">has in total, </span>2452 karma points
<span class="roles">
<span class="admin">admin</span>
</span>
</div>
<div class="time">
4 Hours ago
</div>
</div>
<div class="comment-inner">
<a href="#" class="photo">
<img src="https://s3.amazonaws.com/uifaces/faces/twitter/anoff/128.jpg">
</a>
<div class="body markdown-syntax">
<p>Hi Bjarne</p>
<p>When you generate the gift card using the GiftCardService.Instance.Generate it is possible to assign an order id. Buy having this you will be able to load the order and look for the info here.</p>
<p>Kind regards<br>Anders</p>
</div>
<div class="action">
</div>
</div>
<div class="actions">
<a href="#" class="solved">
<i class="icon-Check"></i><span>Mark as solution</span>
</a>
<a href="#" id="copy-link" class="copy-link">
<i class="icon-Link"></i><span>Copy Link</span>
</a>
<a href="#" class="reply">
<i class="icon-Reply-arrow"></i><span>Reply</span>
</a>
</div>
</li>
<li class="comment level-2">
<div class="meta">
<div class="profile">
<a href="#">Darth Vader</a> <span class="hide-xs">has in total, </span>2452 karma points
</div>
<div class="time">
4 Hours ago
</div>
</div>
<div class="comment-inner">
<a href="#" class="photo">
<img src="https://s3.amazonaws.com/uifaces/faces/twitter/anoff/128.jpg">
</a>
<div class="highfive">
<div class="highfive-count">
5
</div>
<a href="#"><img src="assets/images/highfive.svg" alt="" />High Five</a>
</div>
<div class="body markdown-syntax">
<p>Hi Bjarne</p>
<p>When you generate the gift card using the GiftCardService.Instance.Generate it is possible to assign an order id. Buy having this you will be able to load the order and look for the info here.</p>
<p>Kind regards<br>Anders</p>
</div>
</div>
<div class="actions">
<a href="#" class="solved">
<i class="icon-Check"></i><span>Mark as solution</span>
</a>
<a href="#" id="copy-link" class="copy-link">
<i class="icon-Link"></i><span>Copy Link</span>
</a>
<a href="#" class="reply">
<i class="icon-Reply-arrow"></i><span>Reply</span>
</a>
</div>
</li>
<li class="comment level-2">
<div class="meta">
<div class="profile">
<a href="#">Darth Vader</a> <span class="hide-xs">has in total, </span>2452 karma points
</div>
<div class="time">
4 Hours ago
</div>
</div>
<div class="comment-inner">
<a href="#" class="photo">
<img src="https://s3.amazonaws.com/uifaces/faces/twitter/anoff/128.jpg">
</a>
<div class="highfive">
<div class="highfive-count">
5
</div>
<a href="#"><img src="assets/images/highfive.svg" alt="" />High Five</a>
</div>
<div class="body markdown-syntax">
<p>Hi Bjarne</p>
<p>When you generate the gift card using the GiftCardService.Instance.Generate it is possible to assign an order id. Buy having this you will be able to load the order and look for the info here.</p>
<p>Kind regards<br>Anders</p>
</div>
</div>
<div class="actions">
<a href="#" class="solved">
<i class="icon-Check"></i><span>Mark as solution</span>
</a>
<a href="#" id="copy-link" class="copy-link">
<i class="icon-Link"></i><span>Copy Link</span>
</a>
<a href="#" class="reply">
<i class="icon-Reply-arrow"></i><span>Reply</span>
</a>
</div>
</li>
</ul>
<div class="replybutton">
<a href="#" class="button green large reply">Reply to topic</a>
</div>
<div class="replybutton notloggedin">
Please <a href="#">Log in</a> or <a href="#">sign up</a> to post replies
</div>
</div>
</section>
<footer>
<div class="container">
<div class="row">
<div class="col-xs-12">
Our.umbraco.org is the community mothership for Umbraco, the open source asp.net cms. With a friendly forum for all your questions, a comprehensive documentation and the a ton of packages from the community.
</div>
</div>
</div>
</footer>
<div class="markdown-spacer"></div>
<div id="markdown-editor" class="markdown-editor write">
<div class="container">
<div class="row reply-to" style="display: none;">
<div class="col-sm-6">
<p>Write your reply to: <a class="reply-name" href=""></a></p>
</div>
</div>
<div class="row create-topic" style="display: block;">
<div class="col-sm-6">
<input id="topic-title" class="markdown-control" name="topic-title" type="text" placeholder="Enter topic title">
</div>
<div class="col-sm-3 col-xs-6">
<select name="topic-category" id="topic-category" class="markdown-control">
<option value="Choose a category" selected="" disabled="">Choose a category</option>
<option class="usingumbraco7" value="103196">Umbraco 7 - Using Umbraco 7</option>
<option class="developingumbraco7packages" value="103197">Umbraco 7 - Developing Umbraco 7 packages</option>
<option class="installingumbraco" value="1062">Getting Started - Installing umbraco</option>
<option class="questionsaboutrunwayandmodules" value="1069">Getting Started - Questions about runway and modules</option>
<option class="uiquestions" value="1065">Using - UI Questions</option>
<option class="migratingfromv5tov4(andbeyond)" value="48807">Using - Migrating from v5 to v4 (and beyond)</option>
<option class="templatesanddocumenttypes" value="4773">Templating - Templates and document types</option>
<option class="contour" value="6413">Umbraco PRO - Contour</option>
<option class="concierge" value="6414">Umbraco PRO - Concierge</option>
<option class="courier" value="6415">Umbraco PRO - Courier</option>
<option class="apiquestions" value="1066">Developers - API Questions</option>
<option class="razor" value="16455">Developers - Razor</option>
<option class="xslt" value="4680">Developers - XSLT</option>
<option class="extendingumbraco" value="4684">Developers - Extending Umbraco</option>
<option class="generalmarketing&amp;salesdiscussion" value="49424">Marketing &amp; Sales - General marketing &amp; sales discussion</option>
<option class="suggestameetup" value="1184">Meetups and usergroups - Suggest a meetup</option>
<option class="jobs" value="4691">Jobs - Jobs</option>
<option class="bugs" value="1149">our.umb dev forum - bugs</option>
<option class="features" value="1150">our.umb dev forum - Features</option>
<option class="general" value="5668">Core - General</option>
<option class="4.1feedback" value="5669">Core - 4.1 feedback</option>
<option class="generalquestions" value="73967">Umbraco as a Service - General Questions</option>
<option class="issues" value="73968">Umbraco as a Service - Issues</option>
</select>
</div>
<div class="col-sm-3 col-xs-6">
<select name="topic-version" id="topic-version" class="markdown-control">
<option value="Choose a version" selected="" disabled="">Choose version</option>
<option value="7">Umbraco v7</option>
<option value="6">Umrbaco v6</option>
<option value="4">Umbraco v4</option>
</select>
</div>
</div>
<div class="row hidden-xs">
<div class="col-md-12">
<div id="wmd-button-bar"><ul id="wmd-button-row" class="wmd-button-row"><li class="wmd-button" id="wmd-bold-button" title="Strong <strong> Ctrl+B" style="left: 0px;"><span style="background-position: 0px 0px;"></span></li><li class="wmd-button" id="wmd-italic-button" title="Emphasis <em> Ctrl+I" style="left: 25px;"><span style="background-position: -20px 0px;"></span></li><li class="wmd-spacer wmd-spacer1" id="wmd-spacer1"></li><li class="wmd-button" id="wmd-link-button" title="Hyperlink <a> Ctrl+L" style="left: 75px;"><span style="background-position: -40px 0px;"></span></li><li class="wmd-button" id="wmd-quote-button" title="Blockquote <blockquote> Ctrl+Q" style="left: 100px;"><span style="background-position: -60px 0px;"></span></li><li class="wmd-button" id="wmd-code-button" title="Code Sample <pre><code> Ctrl+K" style="left: 125px;"><span style="background-position: -80px 0px;"></span></li><li class="wmd-button" id="wmd-image-button" title="Image <img> Ctrl+G" style="left: 150px;"><span style="background-position: -100px 0px;"></span></li><li class="wmd-spacer wmd-spacer2" id="wmd-spacer2"></li><li class="wmd-button" id="wmd-olist-button" title="Numbered List <ol> Ctrl+O" style="left: 200px;"><span style="background-position: -120px 0px;"></span></li><li class="wmd-button" id="wmd-ulist-button" title="Bulleted List <ul> Ctrl+U" style="left: 225px;"><span style="background-position: -140px 0px;"></span></li><li class="wmd-button" id="wmd-heading-button" title="Heading <h1>/<h2> Ctrl+H" style="left: 250px;"><span style="background-position: -160px 0px;"></span></li><li class="wmd-button" id="wmd-hr-button" title="Horizontal Rule <hr> Ctrl+R" style="left: 275px;"><span style="background-position: -180px 0px;"></span></li><li class="wmd-spacer wmd-spacer3" id="wmd-spacer3"></li><li class="wmd-button" id="wmd-undo-button" title="Undo - Ctrl+Z" style="left: 325px;"><span style="background-position: -200px -20px;"></span></li><li class="wmd-button" id="wmd-redo-button" title="Redo - Ctrl+Shift+Z" style="left: 350px;"><span style="background-position: -220px -20px;"></span></li></ul></div>
</div>
</div>
<div class="row input-row">
<div id="input-container" class="col-md-6">
<label>Editor</label>
<textarea name="" id="wmd-input" cols="30" rows="10" class="wmd-input markdown-control"></textarea>
</div>
<div id="preview-container" class="col-md-6">
<label>Preview</label>
<div id="wmd-preview" class="wmd-panel wmd-preview markdown-syntax"></div>
</div>
</div>
<div class="row">
<div class="col-xs-8">
<input class="button markdown-control" type="button" value="Post topic" id="topic-submit">
<div id="posting"><div class="loader"></div></div>
</div>
<div class="col-xs-4 visible-xs visible-sm">
<button id="mobile-preview" class="markdown-control">
<i class="icon-Eye"></i> <span>Preview</span>
</button>
</div>
</div>
</div>
<span class="markdown-close icon-Page-down"></span>
<div class="draft">Draft</div>
</div>
</div> <!-- wrapper end -->
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/pagedown/1.0/Markdown.Converter.js"
> </script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/pagedown/1.0/Markdown.Editor.js">
> </script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/pagedown/1.0/Markdown.Sanitizer.js"
> </script>
<script src="assets/js/app.min.js"></script>
<script type="text/javascript">
classOnScroll('header', 'sticky', 10);
(function () {
var converter = new Markdown.getSanitizingConverter();
var editor = new Markdown.Editor(converter);
editor.run();
var thisEditor = $('#markdown-editor'),
thisEditorInput = $('.wmd-input'),
thisEditorPreview = $('.wmd-preview'),
thisEditorDraft = $('.draft'),
thisEditorSpacer = $('.markdown-spacer'),
thisEditorMobilePreview = $('#mobile-preview'),
topic = $('.topic h2').text();
$('.reply').on('click', function (e) {
e.preventDefault();
var replyTo = $(this).closest('.actions').prevAll('.meta').find('a').text();
$('.reply-name').html(replyTo);
$('.reply-topic').html(topic);
showEditor();
});
$('.markdown-close').on('click', function () {
thisEditor.removeClass('write');
thisEditorSpacer.removeClass('write');
if($.trim(thisEditorPreview.text()) != "") {
thisEditorDraft.addClass('show');
}
});
thisEditorInput.on('scroll', function () {
var inputScroll = thisEditorInput.scrollTop(),
scrolledPercentage = (inputScroll / 300) * 100,
previewScrollHeight = document.getElementById('wmd-preview').scrollHeight,
previewScroll = (previewScrollHeight / 100) * scrolledPercentage + 2;
thisEditorPreview.scrollTop(previewScroll);
});
thisEditorDraft.on('click', function () {
thisEditorDraft.removeClass('show');
showEditor();
});
function showEditor () {
thisEditor.addClass('write');
thisEditorSpacer.addClass('write');
setTimeout(function () {
thisEditorInput.focus().delay(600);
}, 1000);
}
thisEditorMobilePreview.on('click', function () {
thisEditor.toggleClass('mobile-preview');
switch($(this).attr('value')){
case 'Preview':
$(this).attr('value', 'Editor');
break;
case 'Editor':
$(this).attr('value', 'Preview');
break;
}
});
// Copy link
var body = $('body'),
getLink = $(".getLink"),
deepLinking = false,
thankyou = document.getElementById('thankyou');
$(".copy-link, .overlay").click(function(e) {
e.preventDefault();
if(deepLinking===false){
body.addClass("active copy-prompt");
getLink.html(window.location.hostname + window.location.pathname + "#comment-" + $(this).attr('data-id'));
getLink.focus();
getLink.select();
deepLinking=true;
}else{
body.removeClass('active');
deepLinking=false;
}
getLink.height(document.getElementsByClassName('getLink')[0].scrollHeight);
});
getLink.keydown(function (e) {
if ((e.metaKey || e.ctrlKey) && e.keyCode === 67) {
body.removeClass("active copy-ptompt");
thankyou.style.opacity = 1;
setTimeout(function() {
thankyou.style.opacity = 0;
}, 900);
deepLinking=false;
}
});
//Delete thread/comment
//Delete comment
$(".comments").on("click", "a.delete-reply", function (e) {
e.preventDefault();
var data = $(this).data();
var id = parseInt(data.id);
var $thisComment = $(this).closest(".comment");
// $(this).closest(".comment").fadeOut(function () { $(this).closest(".comment").remove(); });
terminateConfirm("comment", id, $thisComment);
});
//Delete thread
$(".delete-thread").on("click", function (e) {
e.preventDefault();
var data = $(this).data();
var id = parseInt(data.id);
terminateConfirm("thread", id);
});
function terminateConfirm(typeOfPost, id, thisComment) {
var $confirm = $('#confirm-wrapper');
var $confirmType = $('#confirm-wrapper .type-of')
var $body = $('body');
$body.addClass('active confirm-prompt');
$confirmType.html(typeOfPost);
$('#confirm-wrapper .green').on('click', function (e) {
e.preventDefault;
terminatePost(typeOfPost, id, thisComment);
$body.removeClass('active confirm-prompt');
});
$('#confirm-wrapper .red').on('click', function (e) {
e.preventDefault;
$body.removeClass('active confirm-prompt');
});
}
function terminatePost(typeOfPost, id, thisComment) {
switch (typeOfPost) {
case "comment":
community.deleteComment(id);
thisComment.closest(".comment").fadeOut(function () { thisComment.closest(".comment").remove(); });
break;
case "thread":
community.deleteThread(id);
break;
default:
alert('Something went wrong')
}
}
})();
</script>
</body>
</html>