|
51 | 51 | <Rectangle Height=".65" Margin="8" Fill="{DynamicResource Brush.Border2}" VerticalAlignment="Center"/> |
52 | 52 |
|
53 | 53 | <!-- Base Information --> |
54 | | - <Grid RowDefinitions="24,Auto,Auto,Auto,Auto" ColumnDefinitions="96,*"> |
| 54 | + <Grid RowDefinitions="24,Auto,Auto,Auto" ColumnDefinitions="96,*"> |
55 | 55 | <!-- SHA --> |
56 | 56 | <TextBlock Grid.Row="0" Grid.Column="0" Classes="info_label" Text="{DynamicResource Text.CommitDetail.Info.SHA}" /> |
57 | 57 | <StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal"> |
|
101 | 101 | </StackPanel> |
102 | 102 |
|
103 | 103 | <!-- PARENTS --> |
104 | | - <TextBlock Grid.Row="1" Grid.Column="0" Classes="info_label" Text="{DynamicResource Text.CommitDetail.Info.Parents}"/> |
| 104 | + <TextBlock Grid.Row="1" Grid.Column="0" Classes="info_label" Text="{DynamicResource Text.CommitDetail.Info.Parents}" IsVisible="{Binding Parents.Count, Converter={x:Static c:IntConverters.IsGreaterThanZero}}"/> |
105 | 105 | <ItemsControl Grid.Row="1" Grid.Column="1" Height="24" Margin="12,0,0,0" ItemsSource="{Binding Parents}" IsVisible="{Binding Parents.Count, Converter={x:Static c:IntConverters.IsGreaterThanZero}}"> |
106 | 106 | <ItemsControl.ItemsPanel> |
107 | 107 | <ItemsPanelTemplate> |
|
117 | 117 | TextDecorations="Underline" |
118 | 118 | Cursor="Hand" |
119 | 119 | Margin="0,0,16,0" |
120 | | - PointerPressed="OnSHAPressed"/> |
121 | | - </DataTemplate> |
122 | | - </ItemsControl.ItemTemplate> |
123 | | - </ItemsControl> |
124 | | - |
125 | | - <!-- CHILDREN --> |
126 | | - <TextBlock Grid.Row="2" Grid.Column="0" Classes="info_label" Text="{DynamicResource Text.CommitDetail.Info.Children}"/> |
127 | | - <ItemsControl Grid.Row="2" Grid.Column="1" Height="24" Margin="12,0,0,0" ItemsSource="{Binding Children}" IsVisible="{Binding Children.Count, Converter={x:Static c:IntConverters.IsGreaterThanZero}}"> |
128 | | - <ItemsControl.ItemsPanel> |
129 | | - <ItemsPanelTemplate> |
130 | | - <StackPanel Orientation="Horizontal" VerticalAlignment="Center"/> |
131 | | - </ItemsPanelTemplate> |
132 | | - </ItemsControl.ItemsPanel> |
133 | | - |
134 | | - <ItemsControl.ItemTemplate> |
135 | | - <DataTemplate> |
136 | | - <TextBlock Classes="primary" |
137 | | - Text="{Binding Converter={x:Static c:StringConverters.ToShortSHA}}" |
138 | | - Foreground="DarkOrange" |
139 | | - TextDecorations="Underline" |
140 | | - Cursor="Hand" |
141 | | - Margin="0,0,16,0" |
142 | | - PointerPressed="OnSHAPressed"/> |
| 120 | + PointerPressed="OnParentSHAPressed"/> |
143 | 121 | </DataTemplate> |
144 | 122 | </ItemsControl.ItemTemplate> |
145 | 123 | </ItemsControl> |
146 | 124 |
|
147 | 125 | <!-- REFS --> |
148 | | - <TextBlock Grid.Row="3" Grid.Column="0" Classes="info_label" Text="{DynamicResource Text.CommitDetail.Info.Refs}" IsVisible="{Binding HasDecorators}"/> |
149 | | - <Border Grid.Row="3" Grid.Column="1" Margin="12,0,0,0" Height="24" IsVisible="{Binding HasDecorators}"> |
| 126 | + <TextBlock Grid.Row="2" Grid.Column="0" Classes="info_label" Text="{DynamicResource Text.CommitDetail.Info.Refs}" IsVisible="{Binding HasDecorators}"/> |
| 127 | + <Border Grid.Row="2" Grid.Column="1" Margin="12,0,0,0" Height="24" IsVisible="{Binding HasDecorators}"> |
150 | 128 | <v:CommitRefsPresenter TagBackground="{DynamicResource Brush.DecoratorTag}" |
151 | 129 | Foreground="{DynamicResource Brush.FG1}" |
152 | 130 | FontFamily="{DynamicResource Fonts.Primary}" |
|
156 | 134 | </Border> |
157 | 135 |
|
158 | 136 | <!-- Messages --> |
159 | | - <TextBlock Grid.Row="4" Grid.Column="0" Classes="info_label" Text="{DynamicResource Text.CommitDetail.Info.Message}" VerticalAlignment="Top" Margin="0,4,0,0" /> |
160 | | - <v:CommitMessagePresenter Grid.Row="4" Grid.Column="1" |
| 137 | + <TextBlock Grid.Row="3" Grid.Column="0" Classes="info_label" Text="{DynamicResource Text.CommitDetail.Info.Message}" VerticalAlignment="Top" Margin="0,4,0,0" /> |
| 138 | + <v:CommitMessagePresenter Grid.Row="3" Grid.Column="1" |
161 | 139 | Margin="12,5,8,0" |
162 | 140 | Classes="primary" |
163 | 141 | Message="{Binding #ThisControl.Message}" |
|
0 commit comments