Skip to content

Commit

Permalink
CompilationPage: add title to truncated table columns
Browse files Browse the repository at this point in the history
  • Loading branch information
exyi committed Oct 17, 2023
1 parent 06f82c4 commit d231809
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
26 changes: 19 additions & 7 deletions src/Framework/Framework/Diagnostics/CompilationPage.dothtml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@viewModel DotVVM.Framework.Diagnostics.CompilationPageViewModel
@viewModel DotVVM.Framework.Diagnostics.CompilationPageViewModel

<!DOCTYPE html>
<html lang="en">
Expand Down Expand Up @@ -52,15 +52,19 @@
<dot:GridViewTemplateColumn HeaderText="Url">
<ContentTemplate>
<span IncludeInPage={value: !HasParameters}>
<a href="{value: "/" + Url}">{{value: Url}}</a>
<a href="{value: _root.PathBase + Url}">{{value: Url == "" ? "<Empty>" : Url}}</a>
</span>
<span IncludeInPage={value: HasParameters}>
<span IncludeInPage={value: HasParameters} title={value: Url}>
{{value: Url}}
</span>
</ContentTemplate>
</dot:GridViewTemplateColumn>
<dot:GridViewTextColumn ValueBinding="{value: VirtualPath}"
HeaderText="Virtual Path" />
HeaderText="Virtual Path">
<CellDecorators>
<dot:Decorator title={value: VirtualPath} />
</CellDecorators>
</dot:GridViewTextColumn>
<dot:GridViewTextColumn ValueBinding="{value: Status}"
HeaderText="Status"
HeaderCssClass="fit"
Expand Down Expand Up @@ -89,7 +93,11 @@
HeaderCssClass="fit"
CssClass="fit" />
<dot:GridViewTextColumn ValueBinding="{value: TagName}" HeaderText="Tag" />
<dot:GridViewTextColumn ValueBinding="{value: VirtualPath}" HeaderText="Virtual Path" />
<dot:GridViewTextColumn ValueBinding="{value: VirtualPath}" HeaderText="Virtual Path">
<CellDecorators>
<dot:Decorator title={value: VirtualPath} />
</CellDecorators>
</dot:GridViewTextColumn>
<dot:GridViewTextColumn ValueBinding="{value: Status}"
HeaderText="Status"
HeaderCssClass="fit"
Expand All @@ -112,11 +120,15 @@
Class-success="{value: Status == 'CompletedSuccessfully'}" />
</RowDecorators>
<Columns>
<dot:GridViewTextColumn ValueBinding="{value: VirtualPath}" HeaderText="Virtual Path" />
<dot:GridViewTextColumn ValueBinding="{value: VirtualPath}" HeaderText="Virtual Path">
<CellDecorators>
<dot:Decorator title={value: VirtualPath} />
</CellDecorators>
</dot:GridViewTextColumn>
<dot:GridViewTextColumn ValueBinding="{value: Status}"
HeaderText="Status"
HeaderCssClass="fit"
CssClass="fit status" />
CssClass="fit status"/>
<dot:GridViewTemplateColumn HeaderText="Actions" HeaderCssClass="fit" CssClass="fit">
<ContentTemplate>
<span Visible="{value: Status != CompilationState.NonCompilable}">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class CompilationPageViewModel : DotvvmViewModelBase
public ImmutableArray<DotHtmlFileInfo> MasterPages => viewCompilationService.GetMasterPages();
public ImmutableArray<DotHtmlFileInfo> Controls => viewCompilationService.GetControls();
public int ActiveTab { get; set; } = 0;
public string PathBase => Context.TranslateVirtualPath("~/");

public CompilationPageViewModel(IDotvvmViewCompilationService viewCompilationService)
{
Expand Down

0 comments on commit d231809

Please sign in to comment.