@@ -14,11 +14,11 @@ namespace DotNetCore.CAP.Dashboard.Pages | |||||
public int GetTotal(IMonitoringApi api) | public int GetTotal(IMonitoringApi api) | ||||
{ | { | ||||
if (string.Compare(StatusName, SucceededState.StateName, StringComparison.OrdinalIgnoreCase) == 0) | |||||
if (string.Equals(StatusName, SucceededState.StateName, StringComparison.CurrentCultureIgnoreCase)) | |||||
{ | { | ||||
return api.PublishedSucceededCount(); | return api.PublishedSucceededCount(); | ||||
} | } | ||||
if (string.Compare(StatusName, ProcessingState.StateName, StringComparison.OrdinalIgnoreCase) == 0) | |||||
if (string.Equals(StatusName, ProcessingState.StateName, StringComparison.CurrentCultureIgnoreCase)) | |||||
{ | { | ||||
return api.PublishedProcessingCount(); | return api.PublishedProcessingCount(); | ||||
} | } | ||||
@@ -32,7 +32,7 @@ | |||||
<div class="row"> | <div class="row"> | ||||
<div class="col-md-3"> | <div class="col-md-3"> | ||||
@Html.JobsSidebar(MessageType.Publish) | |||||
@Html.MessagesSidebar(MessageType.Publish) | |||||
</div> | </div> | ||||
<div class="col-md-9"> | <div class="col-md-9"> | ||||
<h1 class="page-header">@Strings.PublishedPage_Title</h1> | <h1 class="page-header">@Strings.PublishedPage_Title</h1> | ||||
@@ -67,7 +67,7 @@ | |||||
data-loading-text="@Strings.Common_Enqueueing" | data-loading-text="@Strings.Common_Enqueueing" | ||||
disabled="disabled"> | disabled="disabled"> | ||||
<span class="glyphicon glyphicon-repeat"></span> | <span class="glyphicon glyphicon-repeat"></span> | ||||
@Strings.Common_RequeueJobs | |||||
@Strings.Common_RequeueMessages | |||||
</button> | </button> | ||||
@Html.PerPageSelector(pager) | @Html.PerPageSelector(pager) | ||||
@@ -83,6 +83,10 @@ | |||||
<th>@Strings.MessagesPage_Table_Code</th> | <th>@Strings.MessagesPage_Table_Code</th> | ||||
<th>@Strings.MessagesPage_Table_Name</th> | <th>@Strings.MessagesPage_Table_Name</th> | ||||
<th class="min-width">@Strings.MessagesPage_Table_Retries</th> | <th class="min-width">@Strings.MessagesPage_Table_Retries</th> | ||||
@if (string.Equals(StatusName, "Processing", StringComparison.CurrentCultureIgnoreCase)) | |||||
{ | |||||
<th>@Strings.MessagesPage_Table_State</th> | |||||
} | |||||
<th class="align-right">@Strings.MessagesPage_Table_ExpiresAt</th> | <th class="align-right">@Strings.MessagesPage_Table_ExpiresAt</th> | ||||
</tr> | </tr> | ||||
</thead> | </thead> | ||||
@@ -102,6 +106,12 @@ | |||||
<td> | <td> | ||||
@message.Retries | @message.Retries | ||||
</td> | </td> | ||||
@if (string.Equals(StatusName, "Processing", StringComparison.CurrentCultureIgnoreCase)) | |||||
{ | |||||
<td> | |||||
@message.StatusName | |||||
</td> | |||||
} | |||||
<td class="align-right"> | <td class="align-right"> | ||||
@if (message.ExpiresAt.HasValue) | @if (message.ExpiresAt.HasValue) | ||||
{ | { | ||||
@@ -11,46 +11,46 @@ | |||||
namespace DotNetCore.CAP.Dashboard.Pages | namespace DotNetCore.CAP.Dashboard.Pages | ||||
{ | { | ||||
#line 2 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
#line 2 "..\..\PublishedPage.cshtml" | |||||
using System; | using System; | ||||
#line default | |||||
#line hidden | |||||
#line default | |||||
#line hidden | |||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Linq; | using System.Linq; | ||||
using System.Text; | using System.Text; | ||||
#line 4 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
#line 4 "..\..\PublishedPage.cshtml" | |||||
using DotNetCore.CAP.Dashboard; | using DotNetCore.CAP.Dashboard; | ||||
#line default | |||||
#line hidden | |||||
#line 6 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
#line default | |||||
#line hidden | |||||
#line 6 "..\..\PublishedPage.cshtml" | |||||
using DotNetCore.CAP.Dashboard.Monitoring; | using DotNetCore.CAP.Dashboard.Monitoring; | ||||
#line default | |||||
#line hidden | |||||
#line 5 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
#line default | |||||
#line hidden | |||||
#line 5 "..\..\PublishedPage.cshtml" | |||||
using DotNetCore.CAP.Dashboard.Pages; | using DotNetCore.CAP.Dashboard.Pages; | ||||
#line default | |||||
#line hidden | |||||
#line 7 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
#line default | |||||
#line hidden | |||||
#line 7 "..\..\PublishedPage.cshtml" | |||||
using DotNetCore.CAP.Dashboard.Resources; | using DotNetCore.CAP.Dashboard.Resources; | ||||
#line default | |||||
#line hidden | |||||
#line 3 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
#line default | |||||
#line hidden | |||||
#line 3 "..\..\PublishedPage.cshtml" | |||||
using DotNetCore.CAP.Models; | using DotNetCore.CAP.Models; | ||||
#line default | |||||
#line hidden | |||||
#line default | |||||
#line hidden | |||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")] | [System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")] | ||||
internal partial class PublishedPage : RazorPage | internal partial class PublishedPage : RazorPage | ||||
{ | { | ||||
@@ -60,7 +60,7 @@ namespace DotNetCore.CAP.Dashboard.Pages | |||||
{ | { | ||||
WriteLiteral("\r\n"); | |||||
WriteLiteral("\r\n"); | |||||
@@ -70,438 +70,496 @@ WriteLiteral("\r\n"); | |||||
#line 9 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
Layout = new LayoutPage(Strings.PublishedMessagesPage_Title); | |||||
int from, perPage; | |||||
#line 9 "..\..\PublishedPage.cshtml" | |||||
int.TryParse(Query("from"), out from); | |||||
int.TryParse(Query("count"), out perPage); | |||||
string name = Query("name"); | |||||
string content = Query("content"); | |||||
Layout = new LayoutPage(Strings.PublishedMessagesPage_Title); | |||||
var monitor = Storage.GetMonitoringApi(); | |||||
var pager = new Pager(from, perPage, GetTotal(monitor)); | |||||
var queryDto = new MessageQueryDto | |||||
{ | |||||
MessageType = MessageType.Publish, | |||||
Name = name, | |||||
Content = content, | |||||
StatusName = StatusName, | |||||
CurrentPage = pager.CurrentPage - 1, | |||||
PageSize = pager.RecordsPerPage | |||||
}; | |||||
var succeededMessages = monitor.Messages(queryDto); | |||||
int from, perPage; | |||||
int.TryParse(Query("from"), out from); | |||||
int.TryParse(Query("count"), out perPage); | |||||
string name = Query("name"); | |||||
string content = Query("content"); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\r\n<div class=\"row\">\r\n <div class=\"col-md-3\">\r\n "); | |||||
var monitor = Storage.GetMonitoringApi(); | |||||
var pager = new Pager(from, perPage, GetTotal(monitor)); | |||||
var queryDto = new MessageQueryDto | |||||
{ | |||||
MessageType = MessageType.Publish, | |||||
Name = name, | |||||
Content = content, | |||||
StatusName = StatusName, | |||||
CurrentPage = pager.CurrentPage - 1, | |||||
PageSize = pager.RecordsPerPage | |||||
}; | |||||
var succeededMessages = monitor.Messages(queryDto); | |||||
#line 35 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
Write(Html.MessagesSidebar(MessageType.Publish)); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\r\n </div>\r\n <div class=\"col-md-9\">\r\n <h1 class=\"page-header\">"); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\r\n<div class=\"row\">\r\n <div class=\"col-md-3\">\r\n "); | |||||
#line 38 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
Write(Strings.PublishedPage_Title); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</h1>\r\n\r\n"); | |||||
#line 35 "..\..\PublishedPage.cshtml" | |||||
Write(Html.MessagesSidebar(MessageType.Publish)); | |||||
#line 40 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
if (succeededMessages.Count == 0) | |||||
{ | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\r\n </div>\r\n <div class=\"col-md-9\">\r\n <h1 class=\"page-header\">"); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(" <div class=\"alert alert-info\">\r\n "); | |||||
#line 43 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
Write(Strings.MessagesPage_NoMessages); | |||||
#line 38 "..\..\PublishedPage.cshtml" | |||||
Write(Strings.PublishedPage_Title); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\r\n </div>\r\n"); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</h1>\r\n\r\n"); | |||||
#line 45 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
} | |||||
else | |||||
{ | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(@" <div class=""js-jobs-list""> | |||||
<div class=""btn-toolbar btn-toolbar-top""> | |||||
<form class=""row""> | |||||
<span class=""col-md-3""> | |||||
<input type=""text"" class=""form-control"" name=""name"" value="""); | |||||
#line 40 "..\..\PublishedPage.cshtml" | |||||
if (succeededMessages.Count == 0) | |||||
{ | |||||
#line 52 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
Write(Query("name")); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\" placeholder=\""); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(" <div class=\"alert alert-info\">\r\n "); | |||||
#line 52 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
Write(Strings.MessagesPage_Query_MessageName); | |||||
#line 43 "..\..\PublishedPage.cshtml" | |||||
Write(Strings.MessagesPage_NoMessages); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\" />\r\n </span>\r\n <div class=\"col-md" + | |||||
"-5\">\r\n <div class=\"input-group\">\r\n " + | |||||
" <input type=\"text\" class=\"form-control\" name=\"content\" value=\""); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\r\n </div>\r\n"); | |||||
#line 56 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
Write(Query("content")); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\" placeholder=\""); | |||||
#line 45 "..\..\PublishedPage.cshtml" | |||||
} | |||||
else | |||||
{ | |||||
#line 56 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
Write(Strings.MessagesPage_Query_MessageBody); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\" />\r\n <span class=\"input-group-btn\">\r\n " + | |||||
" <button class=\"btn btn-info\">"); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(" <div class=\"js-jobs-list\">\r\n <div class=\"btn-toolbar btn-toolb" + | |||||
"ar-top\">\r\n <form class=\"row\">\r\n <span class=\"c" + | |||||
"ol-md-3\">\r\n <input type=\"text\" class=\"form-control\" name=" + | |||||
"\"name\" value=\""); | |||||
#line 58 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
Write(Strings.MessagesPage_Query_Button); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(@"</button> | |||||
</span> | |||||
</div> | |||||
#line 52 "..\..\PublishedPage.cshtml" | |||||
Write(Query(" name")); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\" placeholder=\""); | |||||
#line 52 "..\..\PublishedPage.cshtml" | |||||
Write(Strings.MessagesPage_Query_MessageName); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\" />\r\n </span>\r\n <div class=\"col-md-5\">\r\n " + | |||||
" <div class=\"input-group\">\r\n <in" + | |||||
"put type=\"text\" class=\"form-control\" name=\"content\" value=\""); | |||||
#line 56 "..\..\PublishedPage.cshtml" | |||||
Write(Query(" content")); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\" placeholder=\""); | |||||
#line 56 "..\..\PublishedPage.cshtml" | |||||
Write(Strings.MessagesPage_Query_MessageBody); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\" />\r\n <span class=\"input-group-btn\">\r\n " + | |||||
" <button class=\"btn btn-info\">"); | |||||
#line 58 "..\..\PublishedPage.cshtml" | |||||
Write(Strings.MessagesPage_Query_Button); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(@"</button> | |||||
</span> | |||||
</div> | </div> | ||||
</form> | |||||
</div> | |||||
<div class=""btn-toolbar btn-toolbar-top""> | |||||
<button class=""js-jobs-list-command btn btn-sm btn-primary"" | |||||
data-url="""); | |||||
</div> | |||||
</form> | |||||
</div> | |||||
<div class=""btn-toolbar btn-toolbar-top""> | |||||
<button class=""js-jobs-list-command btn btn-sm btn-primary"" | |||||
data-url="""); | |||||
#line 66 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
Write(Url.To("/published/requeue")); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\"\r\n data-loading-text=\""); | |||||
#line 66 "..\..\PublishedPage.cshtml" | |||||
Write(Url.To("/published/requeue")); | |||||
#line 67 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
Write(Strings.Common_Enqueueing); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\"\r\n data-loading-text=\""); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\"\r\n disabled=\"disabled\">\r\n <spa" + | |||||
"n class=\"glyphicon glyphicon-repeat\"></span>\r\n "); | |||||
#line 70 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
Write(Strings.Common_RequeueJobs); | |||||
#line 67 "..\..\PublishedPage.cshtml" | |||||
Write(Strings.Common_Enqueueing); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\r\n </button>\r\n\r\n "); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\"\r\n disabled=\"disabled\">\r\n <span class=\"glyphicon g" + | |||||
"lyphicon-repeat\"></span>\r\n "); | |||||
#line 73 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
Write(Html.PerPageSelector(pager)); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(@" | |||||
</div> | |||||
<div class=""table-responsive""> | |||||
<table class=""table""> | |||||
<thead> | |||||
<tr> | |||||
<th style=""width:60px;""> | |||||
<input type=""checkbox"" class=""js-jobs-list-select-all"" /> | |||||
</th> | |||||
<th>"); | |||||
#line 70 "..\..\PublishedPage.cshtml" | |||||
Write(Strings.Common_RequeueMessages); | |||||
#line 83 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
Write(Strings.MessagesPage_Table_Code); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\r\n </button>\r\n\r\n "); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</th>\r\n <th>"); | |||||
#line 84 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
Write(Strings.MessagesPage_Table_Name); | |||||
#line 73 "..\..\PublishedPage.cshtml" | |||||
Write(Html.PerPageSelector(pager)); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</th>\r\n <th class=\"min-width\">"); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(@" | |||||
</div> | |||||
#line 85 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
Write(Strings.MessagesPage_Table_Retries); | |||||
<div class=""table-responsive""> | |||||
<table class=""table""> | |||||
<thead> | |||||
<tr> | |||||
<th style=""width:60px;""> | |||||
<input type=""checkbox"" class=""js-jobs-list-select-all"" /> | |||||
</th> | |||||
<th>"); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</th>\r\n <th class=\"align-right\">"); | |||||
#line 86 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
Write(Strings.MessagesPage_Table_ExpiresAt); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</th>\r\n </tr>\r\n </thead>\r\n " + | |||||
" <tbody>\r\n"); | |||||
#line 83 "..\..\PublishedPage.cshtml" | |||||
Write(Strings.MessagesPage_Table_Code); | |||||
#line 90 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
foreach (var message in succeededMessages) | |||||
{ | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</th>\r\n <th>"); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(" <tr class=\"js-jobs-list-row hover\">\r\n " + | |||||
" <td>\r\n <input typ" + | |||||
"e=\"checkbox\" class=\"js-jobs-list-checkbox\" name=\"messages[]\" value=\""); | |||||
#line 94 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
Write(message.Id); | |||||
#line 84 "..\..\PublishedPage.cshtml" | |||||
Write(Strings.MessagesPage_Table_Name); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\" />\r\n </td>\r\n " + | |||||
" <td class=\"word-break\">\r\n <a href=\"ja" + | |||||
"vascript:;\" data-url=\'"); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</th>\r\n <th class=\"min-width\">"); | |||||
#line 97 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
Write(Url.To("/published/message/")+message.Id); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\' class=\"openModal\">#"); | |||||
#line 97 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
Write(message.Id); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</a>\r\n </td>\r\n " + | |||||
" <td>\r\n "); | |||||
#line 100 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
Write(message.Name); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\r\n </td>\r\n " + | |||||
"<td>\r\n "); | |||||
#line 85 "..\..\PublishedPage.cshtml" | |||||
Write(Strings.MessagesPage_Table_Retries); | |||||
#line 103 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
Write(message.Retries); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\r\n </td>\r\n " + | |||||
"<td class=\"align-right\">\r\n"); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</th>\r\n"); | |||||
#line 106 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
if (message.ExpiresAt.HasValue) | |||||
{ | |||||
#line default | |||||
#line hidden | |||||
#line 108 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
Write(Html.RelativeTime(message.ExpiresAt.Value)); | |||||
#line default | |||||
#line hidden | |||||
#line 108 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
} | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(" </td>\r\n\r\n </tr" + | |||||
">\r\n"); | |||||
#line 113 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
} | |||||
#line 86 "..\..\PublishedPage.cshtml" | |||||
if (string.Equals(StatusName, "Processing", StringComparison.CurrentCultureIgnoreCase)) | |||||
{ | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(" </tbody>\r\n </table>\r\n <" + | |||||
"/div>\r\n "); | |||||
#line 117 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
Write(Html.Paginator(pager)); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\r\n </div>\r\n"); | |||||
#line 119 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(@" <div> | |||||
<div class=""modal fade"" tabindex=""-1"" role=""dialog""> | |||||
<div class=""modal-dialog"" role=""document""> | |||||
<div class=""modal-content""> | |||||
<div class=""modal-header""> | |||||
<button type=""button"" class=""close"" data-dismiss=""modal"" aria-label=""Close""><span aria-hidden=""true"">×</span></button> | |||||
<h4 class=""modal-title"">Message Content</h4> | |||||
</div> | |||||
<div id=""jsonContent"" style=""max-height:500px;overflow-y:auto;"" class=""modal-body""> | |||||
</div> | |||||
<div class=""modal-footer""> | |||||
<button type=""button"" class=""btn btn-sm btn-primary"" id=""formatBtn"" onclick="""">"); | |||||
#line 131 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
Write(Strings.MessagesPage_Modal_Format); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</button>\r\n <button type=\"button\" class=\"btn btn-s" + | |||||
"m btn-primary\" id=\"rawBtn\" onclick=\"\">"); | |||||
#line 132 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
Write(Strings.MessagesPage_Modal_Raw); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</button>\r\n <button type=\"button\" class=\"btn btn-s" + | |||||
"m btn-primary\" id=\"expandBtn\" onclick=\"\">"); | |||||
#line 133 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
Write(Strings.MessagesPage_Modal_Expand); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</button>\r\n <button type=\"button\" class=\"btn btn-s" + | |||||
"m btn-primary\" id=\"collapseBtn\" onclick=\"\">"); | |||||
#line 134 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
Write(Strings.MessagesPage_Model_Collaspse); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</button>\r\n </div>\r\n </div><!--" + | |||||
" /.modal-content -->\r\n </div><!-- /.modal-dialog -->\r\n " + | |||||
" </div><!-- /.modal -->\r\n </div>\r\n"); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(" <th>"); | |||||
#line 140 "..\..\Dashboard\Pages\PublishedPage.cshtml" | |||||
} | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(" </div>\r\n</div>"); | |||||
#line 88 "..\..\PublishedPage.cshtml" | |||||
Write(Strings.MessagesPage_Table_State); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</th>\r\n"); | |||||
#line 89 "..\..\PublishedPage.cshtml" | |||||
} | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(" <th class=\"align-right\">"); | |||||
#line 90 "..\..\PublishedPage.cshtml" | |||||
Write(Strings.MessagesPage_Table_ExpiresAt); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</th>\r\n </tr>\r\n </thead>\r\n " + | |||||
" <tbody>\r\n"); | |||||
#line 94 "..\..\PublishedPage.cshtml" | |||||
foreach (var message in succeededMessages) | |||||
{ | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(" <tr class=\"js-jobs-list-row hover\">\r\n " + | |||||
" <td>\r\n <input type=\"checkbox\" class=\"js-j" + | |||||
"obs-list-checkbox\" name=\"messages[]\" value=\""); | |||||
#line 98 "..\..\PublishedPage.cshtml" | |||||
Write(message.Id); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\" />\r\n </td>\r\n <td class=\"w" + | |||||
"ord-break\">\r\n <a href=\"javascript:;\" data-url=\'"); | |||||
#line 101 "..\..\PublishedPage.cshtml" | |||||
Write(Url.To("/published/message/") + message.Id); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\' class=\"openModal\">#"); | |||||
#line 101 "..\..\PublishedPage.cshtml" | |||||
Write(message.Id); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</a>\r\n </td>\r\n <td>\r\n " + | |||||
" "); | |||||
#line 104 "..\..\PublishedPage.cshtml" | |||||
Write(message.Name); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\r\n </td>\r\n <td>\r\n " + | |||||
" "); | |||||
#line 107 "..\..\PublishedPage.cshtml" | |||||
Write(message.Retries); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\r\n </td>\r\n"); | |||||
#line 109 "..\..\PublishedPage.cshtml" | |||||
if (string.Equals(StatusName, "Processing", StringComparison.CurrentCultureIgnoreCase)) | |||||
{ | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(" <td>\r\n "); | |||||
#line 112 "..\..\PublishedPage.cshtml" | |||||
Write(message.StatusName); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\r\n </td>\r\n"); | |||||
#line 114 "..\..\PublishedPage.cshtml" | |||||
} | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(" <td class=\"align-right\">\r\n"); | |||||
#line 116 "..\..\PublishedPage.cshtml" | |||||
if (message.ExpiresAt.HasValue) | |||||
{ | |||||
#line default | |||||
#line hidden | |||||
#line 118 "..\..\PublishedPage.cshtml" | |||||
Write(Html.RelativeTime(message.ExpiresAt.Value)); | |||||
#line default | |||||
#line hidden | |||||
#line 118 "..\..\PublishedPage.cshtml" | |||||
} | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(" </td>\r\n\r\n </tr>\r\n"); | |||||
#line 123 "..\..\PublishedPage.cshtml" | |||||
} | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(" </tbody>\r\n </table>\r\n </div>\r\n " + | |||||
" "); | |||||
#line 127 "..\..\PublishedPage.cshtml" | |||||
Write(Html.Paginator(pager)); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\r\n </div>\r\n"); | |||||
#line 129 "..\..\PublishedPage.cshtml" | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(@" <div> | |||||
<div class=""modal fade"" tabindex=""-1"" role=""dialog""> | |||||
<div class=""modal-dialog"" role=""document""> | |||||
<div class=""modal-content""> | |||||
<div class=""modal-header""> | |||||
<button type=""button"" class=""close"" data-dismiss=""modal"" aria-label=""Close""><span aria-hidden=""true"">×</span></button> | |||||
<h4 class=""modal-title"">Message Content</h4> | |||||
</div> | |||||
<div id=""jsonContent"" style=""max-height:500px;overflow-y:auto;"" class=""modal-body""> | |||||
</div> | |||||
<div class=""modal-footer""> | |||||
<button type=""button"" class=""btn btn-sm btn-primary"" id=""formatBtn"" onclick="""">"); | |||||
#line 141 "..\..\PublishedPage.cshtml" | |||||
Write(Strings.MessagesPage_Modal_Format); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</button>\r\n <button type=\"button\" class=\"btn btn-sm bt" + | |||||
"n-primary\" id=\"rawBtn\" onclick=\"\">"); | |||||
#line 142 "..\..\PublishedPage.cshtml" | |||||
Write(Strings.MessagesPage_Modal_Raw); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</button>\r\n <button type=\"button\" class=\"btn btn-sm bt" + | |||||
"n-primary\" id=\"expandBtn\" onclick=\"\">"); | |||||
#line 143 "..\..\PublishedPage.cshtml" | |||||
Write(Strings.MessagesPage_Modal_Expand); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</button>\r\n <button type=\"button\" class=\"btn btn-sm bt" + | |||||
"n-primary\" id=\"collapseBtn\" onclick=\"\">"); | |||||
#line 144 "..\..\PublishedPage.cshtml" | |||||
Write(Strings.MessagesPage_Model_Collaspse); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</button>\r\n </div>\r\n </div><!-- /.modal" + | |||||
"-content -->\r\n </div><!-- /.modal-dialog -->\r\n </div><" + | |||||
"!-- /.modal -->\r\n </div>\r\n"); | |||||
#line 150 "..\..\PublishedPage.cshtml" | |||||
} | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(" </div>\r\n</div>"); | |||||
} | } | ||||
@@ -14,11 +14,11 @@ namespace DotNetCore.CAP.Dashboard.Pages | |||||
public int GetTotal(IMonitoringApi api) | public int GetTotal(IMonitoringApi api) | ||||
{ | { | ||||
if (string.Compare(StatusName, SucceededState.StateName, StringComparison.OrdinalIgnoreCase) == 0) | |||||
if (string.Equals(StatusName, SucceededState.StateName, StringComparison.CurrentCultureIgnoreCase)) | |||||
{ | { | ||||
return api.ReceivedSucceededCount(); | return api.ReceivedSucceededCount(); | ||||
} | } | ||||
if (string.Compare(StatusName, ProcessingState.StateName, StringComparison.OrdinalIgnoreCase) == 0) | |||||
if (string.Equals(StatusName, ProcessingState.StateName, StringComparison.CurrentCultureIgnoreCase)) | |||||
{ | { | ||||
return api.ReceivedProcessingCount(); | return api.ReceivedProcessingCount(); | ||||
} | } | ||||
@@ -22,7 +22,7 @@ | |||||
var queryDto = new MessageQueryDto | var queryDto = new MessageQueryDto | ||||
{ | { | ||||
MessageType = MessageType.Subscribe, | MessageType = MessageType.Subscribe, | ||||
Group =group, | |||||
Group = group, | |||||
Name = name, | Name = name, | ||||
Content = content, | Content = content, | ||||
StatusName = StatusName, | StatusName = StatusName, | ||||
@@ -34,7 +34,7 @@ | |||||
<div class="row"> | <div class="row"> | ||||
<div class="col-md-3"> | <div class="col-md-3"> | ||||
@Html.JobsSidebar(MessageType.Subscribe) | |||||
@Html.MessagesSidebar(MessageType.Subscribe) | |||||
</div> | </div> | ||||
<div class="col-md-9"> | <div class="col-md-9"> | ||||
<h1 class="page-header">@Strings.ReceivedPage_Title</h1> | <h1 class="page-header">@Strings.ReceivedPage_Title</h1> | ||||
@@ -72,7 +72,7 @@ | |||||
data-loading-text="@Strings.Common_Enqueueing" | data-loading-text="@Strings.Common_Enqueueing" | ||||
disabled="disabled"> | disabled="disabled"> | ||||
<span class="glyphicon glyphicon-repeat"></span> | <span class="glyphicon glyphicon-repeat"></span> | ||||
@Strings.Common_RequeueJobs | |||||
@Strings.Common_ReConsume | |||||
</button> | </button> | ||||
@Html.PerPageSelector(pager) | @Html.PerPageSelector(pager) | ||||
@@ -89,6 +89,10 @@ | |||||
<th>@Strings.MessagesPage_Table_Group</th> | <th>@Strings.MessagesPage_Table_Group</th> | ||||
<th>@Strings.MessagesPage_Table_Name</th> | <th>@Strings.MessagesPage_Table_Name</th> | ||||
<th class="min-width">@Strings.MessagesPage_Table_Retries</th> | <th class="min-width">@Strings.MessagesPage_Table_Retries</th> | ||||
@if (string.Equals(StatusName, "Processing", StringComparison.CurrentCultureIgnoreCase)) | |||||
{ | |||||
<th>@Strings.MessagesPage_Table_State</th> | |||||
} | |||||
<th class="align-right">@Strings.MessagesPage_Table_ExpiresAt</th> | <th class="align-right">@Strings.MessagesPage_Table_ExpiresAt</th> | ||||
</tr> | </tr> | ||||
</thead> | </thead> | ||||
@@ -111,6 +115,12 @@ | |||||
<td> | <td> | ||||
@message.Retries | @message.Retries | ||||
</td> | </td> | ||||
@if (string.Equals(StatusName, "Processing", StringComparison.CurrentCultureIgnoreCase)) | |||||
{ | |||||
<td> | |||||
@message.StatusName | |||||
</td> | |||||
} | |||||
<td class="align-right"> | <td class="align-right"> | ||||
@if (message.ExpiresAt.HasValue) | @if (message.ExpiresAt.HasValue) | ||||
{ | { | ||||
@@ -11,46 +11,46 @@ | |||||
namespace DotNetCore.CAP.Dashboard.Pages | namespace DotNetCore.CAP.Dashboard.Pages | ||||
{ | { | ||||
#line 2 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
#line 2 "..\..\ReceivedPage.cshtml" | |||||
using System; | using System; | ||||
#line default | |||||
#line hidden | |||||
#line default | |||||
#line hidden | |||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Linq; | using System.Linq; | ||||
using System.Text; | using System.Text; | ||||
#line 4 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
#line 4 "..\..\ReceivedPage.cshtml" | |||||
using DotNetCore.CAP.Dashboard; | using DotNetCore.CAP.Dashboard; | ||||
#line default | |||||
#line hidden | |||||
#line 6 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
#line default | |||||
#line hidden | |||||
#line 6 "..\..\ReceivedPage.cshtml" | |||||
using DotNetCore.CAP.Dashboard.Monitoring; | using DotNetCore.CAP.Dashboard.Monitoring; | ||||
#line default | |||||
#line hidden | |||||
#line 5 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
#line default | |||||
#line hidden | |||||
#line 5 "..\..\ReceivedPage.cshtml" | |||||
using DotNetCore.CAP.Dashboard.Pages; | using DotNetCore.CAP.Dashboard.Pages; | ||||
#line default | |||||
#line hidden | |||||
#line 7 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
#line default | |||||
#line hidden | |||||
#line 7 "..\..\ReceivedPage.cshtml" | |||||
using DotNetCore.CAP.Dashboard.Resources; | using DotNetCore.CAP.Dashboard.Resources; | ||||
#line default | |||||
#line hidden | |||||
#line 3 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
#line default | |||||
#line hidden | |||||
#line 3 "..\..\ReceivedPage.cshtml" | |||||
using DotNetCore.CAP.Models; | using DotNetCore.CAP.Models; | ||||
#line default | |||||
#line hidden | |||||
#line default | |||||
#line hidden | |||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")] | [System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")] | ||||
internal partial class ReceivedPage : RazorPage | internal partial class ReceivedPage : RazorPage | ||||
{ | { | ||||
@@ -60,7 +60,7 @@ namespace DotNetCore.CAP.Dashboard.Pages | |||||
{ | { | ||||
WriteLiteral("\r\n"); | |||||
WriteLiteral("\r\n"); | |||||
@@ -70,170 +70,170 @@ WriteLiteral("\r\n"); | |||||
#line 9 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
Layout = new LayoutPage(Strings.ReceivedMessagesPage_Title); | |||||
int from, perPage; | |||||
#line 9 "..\..\ReceivedPage.cshtml" | |||||
int.TryParse(Query("from"), out from); | |||||
int.TryParse(Query("count"), out perPage); | |||||
string group = Query("group"); | |||||
string name = Query("name"); | |||||
string content = Query("content"); | |||||
Layout = new LayoutPage(Strings.ReceivedMessagesPage_Title); | |||||
var monitor = Storage.GetMonitoringApi(); | |||||
var pager = new Pager(from, perPage, GetTotal(monitor)); | |||||
var queryDto = new MessageQueryDto | |||||
{ | |||||
MessageType = MessageType.Subscribe, | |||||
Group =group, | |||||
Name = name, | |||||
Content = content, | |||||
StatusName = StatusName, | |||||
CurrentPage = pager.CurrentPage - 1, | |||||
PageSize = pager.RecordsPerPage | |||||
}; | |||||
var succeededMessages = monitor.Messages(queryDto); | |||||
int from, perPage; | |||||
int.TryParse(Query("from"), out from); | |||||
int.TryParse(Query("count"), out perPage); | |||||
string group = Query("group"); | |||||
string name = Query("name"); | |||||
string content = Query("content"); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\r\n<div class=\"row\">\r\n <div class=\"col-md-3\">\r\n "); | |||||
var monitor = Storage.GetMonitoringApi(); | |||||
var pager = new Pager(from, perPage, GetTotal(monitor)); | |||||
var queryDto = new MessageQueryDto | |||||
{ | |||||
MessageType = MessageType.Subscribe, | |||||
Group = group, | |||||
Name = name, | |||||
Content = content, | |||||
StatusName = StatusName, | |||||
CurrentPage = pager.CurrentPage - 1, | |||||
PageSize = pager.RecordsPerPage | |||||
}; | |||||
var succeededMessages = monitor.Messages(queryDto); | |||||
#line 37 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
Write(Html.MessagesSidebar(MessageType.Subscribe)); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\r\n </div>\r\n <div class=\"col-md-9\">\r\n <h1 class=\"page-header\">"); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\r\n<div class=\"row\">\r\n <div class=\"col-md-3\">\r\n "); | |||||
#line 40 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
Write(Strings.ReceivedPage_Title); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</h1>\r\n\r\n"); | |||||
#line 37 "..\..\ReceivedPage.cshtml" | |||||
Write(Html.MessagesSidebar(MessageType.Subscribe)); | |||||
#line 42 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
if (succeededMessages.Count == 0) | |||||
{ | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\r\n </div>\r\n <div class=\"col-md-9\">\r\n <h1 class=\"page-header\">"); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(" <div class=\"alert alert-info\">\r\n "); | |||||
#line 45 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
Write(Strings.MessagesPage_NoMessages); | |||||
#line 40 "..\..\ReceivedPage.cshtml" | |||||
Write(Strings.ReceivedPage_Title); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\r\n </div>\r\n"); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</h1>\r\n\r\n"); | |||||
#line 42 "..\..\ReceivedPage.cshtml" | |||||
if (succeededMessages.Count == 0) | |||||
{ | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(" <div class=\"alert alert-info\">\r\n "); | |||||
#line 45 "..\..\ReceivedPage.cshtml" | |||||
Write(Strings.MessagesPage_NoMessages); | |||||
#line 47 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
} | |||||
else | |||||
{ | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(@" <div class=""js-jobs-list""> | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\r\n </div>\r\n"); | |||||
#line 47 "..\..\ReceivedPage.cshtml" | |||||
} | |||||
else | |||||
{ | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(@" <div class=""js-jobs-list""> | |||||
<div class=""btn-toolbar btn-toolbar-top""> | <div class=""btn-toolbar btn-toolbar-top""> | ||||
<form class=""row""> | <form class=""row""> | ||||
<span class=""col-md-2""> | <span class=""col-md-2""> | ||||
<input type=""text"" class=""form-control"" name=""name"" value="""); | |||||
<input type=""text"" class=""form-control"" name=""group"" value="""); | |||||
#line 54 "..\..\ReceivedPage.cshtml" | |||||
Write(Query("group")); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\" placeholder=\""); | |||||
#line 54 "..\..\ReceivedPage.cshtml" | |||||
Write(Strings.MessagesPage_Query_MessageGroup); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\" />\r\n </span>\r\n <span class=\"col-m" + | |||||
"d-3\">\r\n <input type=\"text\" class=\"form-control\" name=" + | |||||
"\"name\" value=\""); | |||||
#line 54 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
Write(Query("group")); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\" placeholder=\""); | |||||
#line 57 "..\..\ReceivedPage.cshtml" | |||||
Write(Query("name")); | |||||
#line 54 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
Write(Strings.MessagesPage_Query_MessageGroup); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\" placeholder=\""); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\" />\r\n </span>\r\n <span class=\"col-m" + | |||||
"d-3\">\r\n <input type=\"text\" class=\"form-control\" name=" + | |||||
"\"name\" value=\""); | |||||
#line 57 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
Write(Query("name")); | |||||
#line 57 "..\..\ReceivedPage.cshtml" | |||||
Write(Strings.MessagesPage_Query_MessageName); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\" placeholder=\""); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\" />\r\n </span>\r\n <div class=\"col-md" + | |||||
"-5\">\r\n <div class=\"input-group\">\r\n " + | |||||
" <input type=\"text\" class=\"form-control\" name=\"content\" value=\""); | |||||
#line 57 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
Write(Strings.MessagesPage_Query_MessageName); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\" />\r\n </span>\r\n <div class=\"col-md" + | |||||
"-5\">\r\n <div class=\"input-group\">\r\n " + | |||||
" <input type=\"text\" class=\"form-control\" name=\"content\" value=\""); | |||||
#line 61 "..\..\ReceivedPage.cshtml" | |||||
Write(Query("content")); | |||||
#line 61 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
Write(Query("content")); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\" placeholder=\""); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\" placeholder=\""); | |||||
#line 61 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
Write(Strings.MessagesPage_Query_MessageBody); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\" />\r\n <span class=\"input-group-btn\">\r\n " + | |||||
" <button class=\"btn btn-info\">"); | |||||
#line 61 "..\..\ReceivedPage.cshtml" | |||||
Write(Strings.MessagesPage_Query_MessageBody); | |||||
#line 63 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
Write(Strings.MessagesPage_Query_Button); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\" />\r\n <span class=\"input-group-btn\">\r\n " + | |||||
" <button class=\"btn btn-info\">"); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(@"</button> | |||||
#line 63 "..\..\ReceivedPage.cshtml" | |||||
Write(Strings.MessagesPage_Query_Button); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(@"</button> | |||||
</span> | </span> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -244,45 +244,45 @@ WriteLiteral(@"</button> | |||||
data-url="""); | data-url="""); | ||||
#line 71 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
Write(Url.To("/received/requeue")); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\"\r\n data-loading-text=\""); | |||||
#line 71 "..\..\ReceivedPage.cshtml" | |||||
Write(Url.To("/received/requeue")); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\"\r\n data-loading-text=\""); | |||||
#line 72 "..\..\ReceivedPage.cshtml" | |||||
Write(Strings.Common_Enqueueing); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\"\r\n disabled=\"disabled\">\r\n <spa" + | |||||
"n class=\"glyphicon glyphicon-repeat\"></span>\r\n "); | |||||
#line 72 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
Write(Strings.Common_Enqueueing); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\"\r\n disabled=\"disabled\">\r\n <spa" + | |||||
"n class=\"glyphicon glyphicon-repeat\"></span>\r\n "); | |||||
#line 75 "..\..\ReceivedPage.cshtml" | |||||
Write(Strings.Common_ReConsume); | |||||
#line 75 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
Write(Strings.Common_RequeueJobs); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\r\n </button>\r\n\r\n "); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\r\n </button>\r\n\r\n "); | |||||
#line 78 "..\..\ReceivedPage.cshtml" | |||||
Write(Html.PerPageSelector(pager)); | |||||
#line 78 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
Write(Html.PerPageSelector(pager)); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(@" | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(@" | |||||
</div> | </div> | ||||
<div class=""table-responsive""> | <div class=""table-responsive""> | ||||
@@ -295,192 +295,254 @@ WriteLiteral(@" | |||||
<th>"); | <th>"); | ||||
#line 88 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
Write(Strings.MessagesPage_Table_Code); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</th>\r\n <th>"); | |||||
#line 88 "..\..\ReceivedPage.cshtml" | |||||
Write(Strings.MessagesPage_Table_Code); | |||||
#line 89 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
Write(Strings.MessagesPage_Table_Group); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</th>\r\n <th>"); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</th>\r\n <th>"); | |||||
#line 90 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
Write(Strings.MessagesPage_Table_Name); | |||||
#line 89 "..\..\ReceivedPage.cshtml" | |||||
Write(Strings.MessagesPage_Table_Group); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</th>\r\n <th class=\"min-width\">"); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</th>\r\n <th>"); | |||||
#line 91 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
Write(Strings.MessagesPage_Table_Retries); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</th>\r\n <th class=\"align-right\">"); | |||||
#line 90 "..\..\ReceivedPage.cshtml" | |||||
Write(Strings.MessagesPage_Table_Name); | |||||
#line 92 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
Write(Strings.MessagesPage_Table_ExpiresAt); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</th>\r\n </tr>\r\n </thead>\r\n " + | |||||
" <tbody>\r\n"); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</th>\r\n <th class=\"min-width\">"); | |||||
#line 96 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
foreach (var message in succeededMessages) | |||||
{ | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(" <tr class=\"js-jobs-list-row hover\">\r\n " + | |||||
" <td>\r\n <input typ" + | |||||
"e=\"checkbox\" class=\"js-jobs-list-checkbox\" name=\"messages[]\" value=\""); | |||||
#line 91 "..\..\ReceivedPage.cshtml" | |||||
Write(Strings.MessagesPage_Table_Retries); | |||||
#line 100 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
Write(message.Id); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</th>\r\n"); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\" />\r\n </td>\r\n " + | |||||
" <td class=\"word-break\">\r\n <a href=\"ja" + | |||||
"vascript:;\" data-url=\'"); | |||||
#line 103 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
Write(Url.To("/received/message/")+message.Id); | |||||
#line 92 "..\..\ReceivedPage.cshtml" | |||||
if (string.Equals(StatusName, "Processing", StringComparison.CurrentCultureIgnoreCase)) | |||||
{ | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\' class=\"openModal\">#"); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(" <th>"); | |||||
#line 103 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
Write(message.Id); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</a>\r\n </td>\r\n " + | |||||
" <td>\r\n "); | |||||
#line 94 "..\..\ReceivedPage.cshtml" | |||||
Write(Strings.MessagesPage_Table_State); | |||||
#line 106 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
Write(message.Group); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\r\n </td>\r\n " + | |||||
"<td>\r\n "); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</th>\r\n"); | |||||
#line 109 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
Write(message.Name); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\r\n </td>\r\n " + | |||||
"<td>\r\n "); | |||||
#line 95 "..\..\ReceivedPage.cshtml" | |||||
} | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(" <th class=\"align-right\">"); | |||||
#line 112 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
Write(message.Retries); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\r\n </td>\r\n " + | |||||
"<td class=\"align-right\">\r\n"); | |||||
#line 96 "..\..\ReceivedPage.cshtml" | |||||
Write(Strings.MessagesPage_Table_ExpiresAt); | |||||
#line 115 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
if (message.ExpiresAt.HasValue) | |||||
{ | |||||
#line default | |||||
#line hidden | |||||
#line 117 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
Write(Html.RelativeTime(message.ExpiresAt.Value)); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</th>\r\n </tr>\r\n </thead>\r\n " + | |||||
" <tbody>\r\n"); | |||||
#line default | |||||
#line hidden | |||||
#line 117 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
} | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(" </td>\r\n\r\n </tr" + | |||||
">\r\n"); | |||||
#line 100 "..\..\ReceivedPage.cshtml" | |||||
foreach (var message in succeededMessages) | |||||
{ | |||||
#line 122 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
} | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(" </tbody>\r\n </table>\r\n <" + | |||||
"/div>\r\n "); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(" <tr class=\"js-jobs-list-row hover\">\r\n " + | |||||
" <td>\r\n <input typ" + | |||||
"e=\"checkbox\" class=\"js-jobs-list-checkbox\" name=\"messages[]\" value=\""); | |||||
#line 126 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
Write(Html.Paginator(pager)); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\r\n </div>\r\n"); | |||||
#line 104 "..\..\ReceivedPage.cshtml" | |||||
Write(message.Id); | |||||
#line 128 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\" />\r\n </td>\r\n " + | |||||
" <td class=\"word-break\">\r\n <a href=\"ja" + | |||||
"vascript:;\" data-url=\'"); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(@" <div> | |||||
#line 107 "..\..\ReceivedPage.cshtml" | |||||
Write(Url.To("/received/message/") + message.Id); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\' class=\"openModal\">#"); | |||||
#line 107 "..\..\ReceivedPage.cshtml" | |||||
Write(message.Id); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</a>\r\n </td>\r\n " + | |||||
" <td>\r\n "); | |||||
#line 110 "..\..\ReceivedPage.cshtml" | |||||
Write(message.Group); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\r\n </td>\r\n " + | |||||
"<td>\r\n "); | |||||
#line 113 "..\..\ReceivedPage.cshtml" | |||||
Write(message.Name); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\r\n </td>\r\n " + | |||||
"<td>\r\n "); | |||||
#line 116 "..\..\ReceivedPage.cshtml" | |||||
Write(message.Retries); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\r\n </td>\r\n"); | |||||
#line 118 "..\..\ReceivedPage.cshtml" | |||||
if (string.Equals(StatusName, "Processing", StringComparison.CurrentCultureIgnoreCase)) | |||||
{ | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(" <td>\r\n " + | |||||
" "); | |||||
#line 121 "..\..\ReceivedPage.cshtml" | |||||
Write(message.StatusName); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\r\n </td>\r\n"); | |||||
#line 123 "..\..\ReceivedPage.cshtml" | |||||
} | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(" <td class=\"align-right\">\r\n"); | |||||
#line 125 "..\..\ReceivedPage.cshtml" | |||||
if (message.ExpiresAt.HasValue) | |||||
{ | |||||
#line default | |||||
#line hidden | |||||
#line 127 "..\..\ReceivedPage.cshtml" | |||||
Write(Html.RelativeTime(message.ExpiresAt.Value)); | |||||
#line default | |||||
#line hidden | |||||
#line 127 "..\..\ReceivedPage.cshtml" | |||||
} | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(" </td>\r\n\r\n </tr" + | |||||
">\r\n"); | |||||
#line 132 "..\..\ReceivedPage.cshtml" | |||||
} | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(" </tbody>\r\n </table>\r\n <" + | |||||
"/div>\r\n "); | |||||
#line 136 "..\..\ReceivedPage.cshtml" | |||||
Write(Html.Paginator(pager)); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("\r\n </div>\r\n"); | |||||
#line 138 "..\..\ReceivedPage.cshtml" | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(@" <div> | |||||
<div class=""modal fade"" tabindex=""-1"" role=""dialog""> | <div class=""modal fade"" tabindex=""-1"" role=""dialog""> | ||||
<div class=""modal-dialog"" role=""document""> | <div class=""modal-dialog"" role=""document""> | ||||
<div class=""modal-content""> | <div class=""modal-content""> | ||||
@@ -494,59 +556,59 @@ WriteLiteral(@" <div> | |||||
<button type=""button"" class=""btn btn-sm btn-primary"" id=""formatBtn"" onclick="""">"); | <button type=""button"" class=""btn btn-sm btn-primary"" id=""formatBtn"" onclick="""">"); | ||||
#line 140 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
Write(Strings.MessagesPage_Modal_Format); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</button>\r\n <button type=\"button\" class=\"btn btn-s" + | |||||
"m btn-primary\" id=\"rawBtn\" onclick=\"\">"); | |||||
#line 150 "..\..\ReceivedPage.cshtml" | |||||
Write(Strings.MessagesPage_Modal_Format); | |||||
#line 141 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
Write(Strings.MessagesPage_Modal_Raw); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</button>\r\n <button type=\"button\" class=\"btn btn-s" + | |||||
"m btn-primary\" id=\"rawBtn\" onclick=\"\">"); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</button>\r\n <button type=\"button\" class=\"btn btn-s" + | |||||
"m btn-primary\" id=\"expandBtn\" onclick=\"\">"); | |||||
#line 142 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
Write(Strings.MessagesPage_Modal_Expand); | |||||
#line 151 "..\..\ReceivedPage.cshtml" | |||||
Write(Strings.MessagesPage_Modal_Raw); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</button>\r\n <button type=\"button\" class=\"btn btn-s" + | |||||
"m btn-primary\" id=\"collapseBtn\" onclick=\"\">"); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</button>\r\n <button type=\"button\" class=\"btn btn-s" + | |||||
"m btn-primary\" id=\"expandBtn\" onclick=\"\">"); | |||||
#line 143 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
Write(Strings.MessagesPage_Model_Collaspse); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</button>\r\n </div>\r\n </div><!--" + | |||||
" /.modal-content -->\r\n </div><!-- /.modal-dialog -->\r\n " + | |||||
" </div><!-- /.modal -->\r\n </div>\r\n"); | |||||
#line 152 "..\..\ReceivedPage.cshtml" | |||||
Write(Strings.MessagesPage_Modal_Expand); | |||||
#line 149 "..\..\Dashboard\Pages\ReceivedPage.cshtml" | |||||
} | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(" </div>\r\n</div>"); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</button>\r\n <button type=\"button\" class=\"btn btn-s" + | |||||
"m btn-primary\" id=\"collapseBtn\" onclick=\"\">"); | |||||
#line 153 "..\..\ReceivedPage.cshtml" | |||||
Write(Strings.MessagesPage_Model_Collaspse); | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral("</button>\r\n </div>\r\n </div><!--" + | |||||
" /.modal-content -->\r\n </div><!-- /.modal-dialog -->\r\n " + | |||||
" </div><!-- /.modal -->\r\n </div>\r\n"); | |||||
#line 159 "..\..\ReceivedPage.cshtml" | |||||
} | |||||
#line default | |||||
#line hidden | |||||
WriteLiteral(" </div>\r\n</div>"); | |||||
} | } | ||||