-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show people who committed to current build in GUI.
- Loading branch information
1 parent
1a84b02
commit 5a7b224
Showing
11 changed files
with
156 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
src/Soloplan.WhatsON.Jenkins.GUI/JenkinsProjectDataTemplate.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:buildServer="clr-namespace:Soloplan.WhatsON.GUI.Common.BuildServer;assembly=Soloplan.WhatsON.GUI.Common" | ||
xmlns:gui="clr-namespace:Soloplan.WhatsON.Jenkins.GUI;assembly=Soloplan.WhatsON.Jenkins.GUI" | ||
xmlns:subjectTreeView="clr-namespace:Soloplan.WhatsON.GUI.Common.SubjectTreeView;assembly=Soloplan.WhatsON.GUI.Common"> | ||
|
||
<BooleanToVisibilityConverter x:Key="BoolToVisibility" /> | ||
<subjectTreeView:StatusToColorConverter x:Key="StatusToColorConverter" /> | ||
<subjectTreeView:TimeToAproximateTimeConverter x:Key="TimeToAproximateTimeConverter" /> | ||
<!-- ToDo DGO: this should be separate control for displaying status. This way it will be easier to reuse. --> | ||
|
||
<ContextMenu x:Key="BuildServerProjectContextMenu"> | ||
<!-- CommandParameter must be declared before Command or else value from previous opening of context menu will be passed. WTF?! --> | ||
<MenuItem Header="Open project web page" | ||
CommandParameter="{Binding OpenWebPageParam}" | ||
Command="{Binding OpenWebPage}" /> | ||
<MenuItem Header="Open current build page" | ||
Visibility="{Binding CurrentStatus.Building, Converter={StaticResource BoolToVisibility}}" | ||
CommandParameter="{Binding CurrentStatus.OpenBuildPageCommandData}" | ||
Command="{Binding CurrentStatus.OpenBuildPage}" /> | ||
|
||
</ContextMenu> | ||
<DataTemplate DataType="{x:Type gui:JenkinsStatusViewModel}"> | ||
<buildServer:HistoryBuildControl DataContext="{Binding}"> | ||
<buildServer:HistoryBuildControl.ToolTip> | ||
<StackPanel> | ||
<buildServer:HistoryBuildTooltipControl DataContext="{Binding}" /> | ||
<StackPanel Visibility="{Binding CulpritsAndLastCommittedDifferent, Converter={StaticResource BoolToVisibility}}"> | ||
<buildServer:CulpritsControl Caption="Commits by:" CulpritsProp="{Binding DataContext.CommittedToThisBuild, RelativeSource={RelativeSource AncestorType=StackPanel}}" /> | ||
</StackPanel> | ||
<buildServer:CulpritsControl Caption="All culprits for this build:" CulpritsProp="{Binding DataContext.Culprits, RelativeSource={RelativeSource AncestorType=StackPanel}}" /> | ||
</StackPanel> | ||
</buildServer:HistoryBuildControl.ToolTip> | ||
</buildServer:HistoryBuildControl> | ||
</DataTemplate> | ||
|
||
<DataTemplate DataType="{x:Type gui:JenkinsProjectViewModel}"> | ||
<StackPanel ContextMenu="{StaticResource BuildServerProjectContextMenu}" Orientation="Horizontal"> | ||
<buildServer:BuildInformationIconControl DataContext="{Binding CurrentStatus}"> | ||
<buildServer:BuildInformationIconControl.ToolTip> | ||
<StackPanel> | ||
<buildServer:ProgressBarTooltipControl DataContext="{Binding}" /> | ||
<StackPanel Visibility="{Binding CulpritsAndLastCommittedDifferent, Converter={StaticResource BoolToVisibility}}"> | ||
<buildServer:CulpritsControl Caption="Commits by:" CulpritsProp="{Binding DataContext.CommittedToThisBuild, RelativeSource={RelativeSource AncestorType=StackPanel}}" /> | ||
</StackPanel> | ||
<buildServer:CulpritsControl Caption="All culprits for this build:" CulpritsProp="{Binding DataContext.Culprits, RelativeSource={RelativeSource AncestorType=StackPanel}}" /> | ||
</StackPanel> | ||
</buildServer:BuildInformationIconControl.ToolTip> | ||
</buildServer:BuildInformationIconControl> | ||
<TextBlock Text=" " /> | ||
<TextBlock Text="{Binding Name}" /> | ||
<TextBlock Text=" #" /> | ||
<TextBlock Text="{Binding CurrentStatus.BuildNumber}" /> | ||
<TextBlock Text=" " /> | ||
<buildServer:HistoryBuildList DataContext="{Binding SubjectSnapshots, Mode=OneWay}" /> | ||
</StackPanel> | ||
</DataTemplate> | ||
</ResourceDictionary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/Soloplan.WhatsON.Jenkins.GUI/Properties/Resources.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters