Add markdown support for summary (#482)
* Add markdown support for summary * Save both md and html summary
This commit is contained in:
@@ -19,7 +19,8 @@
|
||||
|
||||
@input!(ctx.1, display_name (text), "Display name", form, errors.clone())
|
||||
@input!(ctx.1, email (text), "Email", form, errors.clone())
|
||||
@input!(ctx.1, summary (text), "Summary", form, errors)
|
||||
<label for="summary">@i18n!(ctx.1, "Summary")</label>
|
||||
<textarea id="summary" name="summary">@form.summary</textarea>
|
||||
|
||||
<input type="submit" value="@i18n!(ctx.1, "Update account")"/>
|
||||
</form>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
@for follow in followed {
|
||||
<div class="card">
|
||||
<h3><a href="@uri!(user::details: name = &follow.fqn)">@follow.name()</a> <small>@format!("@{}", &follow.fqn)</small></h3>
|
||||
<main><p>@Html(follow.summary)</p></main>
|
||||
<main><p>@Html(follow.summary_html)</p></main>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
@for follower in followers {
|
||||
<div class="card">
|
||||
<h3><a href="@uri!(user::details: name = &follower.fqn)">@follower.name()</a> <small>@format!("@{}", &follower.fqn)</small></h3>
|
||||
<main><p>@Html(follower.summary)</p></main>
|
||||
<main><p>@Html(follower.summary_html)</p></main>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
@@ -43,6 +43,6 @@
|
||||
}
|
||||
</div>
|
||||
<div class="user-summary p-note">
|
||||
@Html(user.summary.clone())
|
||||
@Html(user.summary_html.clone())
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user