Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/Hangfire.Core/Dashboard/Content/resx/Strings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/Hangfire.Core/Dashboard/Content/resx/Strings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -578,4 +578,7 @@
<data name="Metrics_SQLServer_LogFilesSize" xml:space="preserve">
<value>Log File(s) Used (MB)</value>
</data>
<data name="JobDetailsPage_Source" xml:space="preserve">
<value>Source</value>
</data>
</root>
17 changes: 16 additions & 1 deletion src/Hangfire.Core/Dashboard/Pages/JobDetailsPage.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
</div>
}

var displayParameters = job.Properties.Where(x => !x.Key.StartsWith("DBG_") && x.Key != "Continuations").ToArray();
var displayParameters = job.Properties.Where(x => !x.Key.StartsWith("DBG_") && !x.Key.StartsWith("SRC_") && x.Key != "Continuations").ToArray();

if (displayParameters.Length > 0)
{
Expand Down Expand Up @@ -190,6 +190,21 @@
}
}

var srcParameters = job.Properties.Where(x => x.Key.StartsWith("SRC_")).ToArray();
if (job.Job != null && srcParameters.Length > 0)
{
<h3 id="job-details-source">@Strings.JobDetailsPage_Source</h3>
<table class="table table-condensed job-snippet-properties" aria-describedby="job-details-source">
@foreach (var parameter in srcParameters)
{
<tr>
<td class="width-20 word-break">@parameter.Key.Substring(4)</td>
<td><pre><code>@parameter.Value</code></pre></td>
</tr>
}
</table>
}

<h3>
@if (job.History.Count > 1)
{
Expand Down
Loading