98 lines
7.2 KiB
Plaintext
98 lines
7.2 KiB
Plaintext
@model GanjooRazor.Pages.LoginPartialEnabledPageModel
|
|
@using DNTPersianUtils.Core
|
|
|
|
<div id="utils-navbar">
|
|
@if (Model.GanjoorPage != null)
|
|
{
|
|
<div class="clear-both utilbar">
|
|
@if (Model.GanjoorPage.Poem != null)
|
|
{
|
|
|
|
@if (Model.LoggedIn)
|
|
{
|
|
<a href="/User/Editor?id=@Model.GanjoorPage.Id" role="button" class="cursor-pointer" title="ویرایش">
|
|
<div class="circled-number">
|
|
<svg class="noindent-info-button" height="24px" viewBox="0 0 24 24" width="24px" fill="#5f6368"><path d="M0 0h24v24H0V0z" fill="none" /><path d="M14.06 9.02l.92.92L5.92 19H5v-.92l9.06-9.06M17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29zm-3.6 3.19L3 17.25V21h3.75L17.81 9.94l-3.75-3.75z" /></svg>
|
|
</div>
|
|
</a>
|
|
|
|
<a href="/User/Editor?id=@Model.GanjoorPage.Id#summaries" role="button" class="cursor-pointer" title="ویرایش یا درج خلاصه">
|
|
<div class="circled-number">
|
|
<svg class="noindent-info-button" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#5f6368"><rect fill="none" height="24" width="24" /><path d="M3,10h11v2H3V10z M3,8h11V6H3V8z M3,16h7v-2H3V16z M18.01,12.87l0.71-0.71c0.39-0.39,1.02-0.39,1.41,0l0.71,0.71 c0.39,0.39,0.39,1.02,0,1.41l-0.71,0.71L18.01,12.87z M17.3,13.58l-5.3,5.3V21h2.12l5.3-5.3L17.3,13.58z" /></svg>
|
|
</div>
|
|
</a>
|
|
|
|
<a onclick="switchBookmark(@Model.GanjoorPage.Id, 0, '')" role="button" class="cursor-pointer" title="نشان کردن">
|
|
<div class="circled-number" id="bookmark">
|
|
<i class="notranslate noindent-info-button" id="bookmark-icon">star_border</i>
|
|
</div>
|
|
</a>
|
|
}
|
|
|
|
<a onclick="btshmr(@Model.GanjoorPage.Id)" role="button" class="cursor-pointer" title="شمارهگذاری">
|
|
<div class="circled-number">
|
|
<svg id="bnum-button" class="noindent-info-button" height="24px" viewBox="0 0 24 24" width="24px" fill="#5f6368"><path d="M0 0h24v24H0V0z" fill="none" /><path d="M18 17h2v.5h-1v1h1v.5h-2v1h3v-4h-3v1zm1-9h1V4h-2v1h1v3zm-1 3h1.8L18 13.1v.9h3v-1h-1.8l1.8-2.1V10h-3v1zM2 5h14v2H2V5zm0 12h14v2H2v-2zm0-6h14v2H2v-2z" /></svg>
|
|
</div>
|
|
</a>
|
|
|
|
<a onclick="copyPoemLink()" role="button" class="cursor-pointer" title="رونوشت نشانی">
|
|
<div class="circled-number">
|
|
<svg class="noindent-info-button" height="24px" viewBox="0 0 24 24" width="24px" fill="#5f6368"><path d="M0 0h24v24H0V0z" fill="none" /><path d="M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5zm-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-2zm-3-4h8v2H8z" /></svg>
|
|
</div>
|
|
</a>
|
|
|
|
<a onclick="copyPoemText()" role="button" class="cursor-pointer" title="رونوشت متن">
|
|
<div class="circled-number">
|
|
<svg class="noindent-info-button" height="24px" viewBox="0 0 24 24" width="24px" fill="#5f6368"><path d="M0 0h24v24H0V0z" fill="none" /><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z" /></svg>
|
|
</div>
|
|
</a>
|
|
|
|
<a onclick="webSharePoem()" role="button" class="cursor-pointer" id="share_span" title="همرسانی">
|
|
<div class="circled-number">
|
|
<svg class="noindent-info-button" height="24px" viewBox="0 0 24 24" width="24px" fill="#5f6368"><path d="M0 0h24v24H0V0z" fill="none" /><path d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92c0-1.61-1.31-2.92-2.92-2.92zM18 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM6 13c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm12 7.02c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z" /></svg>
|
|
</div>
|
|
</a>
|
|
}
|
|
|
|
@if (Model.GanjoorPage.GanjoorPageType == RMuseum.Models.Ganjoor.GanjoorPageType.PoetPage || Model.GanjoorPage.GanjoorPageType == RMuseum.Models.Ganjoor.GanjoorPageType.CatPage)
|
|
{
|
|
@if (Model.LoggedIn)
|
|
{
|
|
<a href="/User/CatEditor?id=@Model.GanjoorPage.Id" role="button" class="cursor-pointer" title="ویرایش">
|
|
<div class="circled-number">
|
|
<svg class="noindent-info-button" height="24px" viewBox="0 0 24 24" width="24px" fill="#5f6368"><path d="M0 0h24v24H0V0z" fill="none" /><path d="M14.06 9.02l.92.92L5.92 19H5v-.92l9.06-9.06M17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29zm-3.6 3.19L3 17.25V21h3.75L17.81 9.94l-3.75-3.75z" /></svg>
|
|
</div>
|
|
</a>
|
|
}
|
|
}
|
|
|
|
@if (!string.IsNullOrEmpty(Model.PreviousUrl))
|
|
{
|
|
<a href="@Html.Raw(Model.PreviousUrl)" role="button" class="cursor-pointer" title="قبلی">
|
|
<div class="circled-number">
|
|
<svg class="noindent-info-button" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#5f6368"><g><rect fill="none" height="24" width="24" /></g><g><path d="M22,12c0-5.52-4.48-10-10-10C6.48,2,2,6.48,2,12s4.48,10,10,10C17.52,22,22,17.52,22,12z M4,12c0-4.42,3.58-8,8-8 c4.42,0,8,3.58,8,8s-3.58,8-8,8C7.58,20,4,16.42,4,12z M16,12l-4,4l-1.41-1.41L12.17,13H8v-2h4.17l-1.59-1.59L12,8L16,12z" /></g></svg>
|
|
</div>
|
|
</a>
|
|
}
|
|
|
|
@if (!string.IsNullOrEmpty(Model.NextUrl))
|
|
{
|
|
<a href="@Html.Raw(Model.NextUrl)" role="button" class="cursor-pointer" title="بعدی">
|
|
<div class="circled-number">
|
|
<svg class="noindent-info-button" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#5f6368"><g><rect fill="none" height="24" width="24" /></g><g><path d="M2,12c0,5.52,4.48,10,10,10c5.52,0,10-4.48,10-10S17.52,2,12,2C6.48,2,2,6.48,2,12z M20,12c0,4.42-3.58,8-8,8 c-4.42,0-8-3.58-8-8s3.58-8,8-8C16.42,4,20,7.58,20,12z M8,12l4-4l1.41,1.41L11.83,11H16v2h-4.17l1.59,1.59L12,16L8,12z" /></g></svg>
|
|
</div>
|
|
</a>
|
|
}
|
|
</div>
|
|
|
|
@if (Model.GanjoorPage.Poem != null)
|
|
{
|
|
<div class="clear-both margin-15px" id="fake-inline-div">
|
|
<input type="search" name="fake-inline-search" id="fake-inline-search" class="text-align-center" placeholder="جستجو در متن" size="20" value="" oninput="displayMainInlineSearch()">
|
|
</div>
|
|
}
|
|
|
|
}
|
|
|
|
</div>
|