|
25 | 25 | <TextBlock FontWeight="Bold" Margin="4,0,0,0" Text="{Binding Path}"/> |
26 | 26 | </StackPanel> |
27 | 27 |
|
28 | | - <Grid RowDefinitions="24,24" ColumnDefinitions="Auto,Auto" Margin="0,8,0,0"> |
| 28 | + <Grid RowDefinitions="24,24,24" ColumnDefinitions="Auto,Auto" Margin="0,8,0,0"> |
29 | 29 | <TextBlock Grid.Row="0" Grid.Column="0" |
| 30 | + Classes="info_label" |
| 31 | + HorizontalAlignment="Left" VerticalAlignment="Center" |
| 32 | + Text="{DynamicResource Text.Submodule.Branch}"/> |
| 33 | + <StackPanel Grid.Row="0" Grid.Column="1" |
| 34 | + Orientation="Horizontal" |
| 35 | + Margin="8,0,0,0"> |
| 36 | + <Path Width="14" Height="14" Margin="2,0,0,0" Data="{StaticResource Icons.Branch}"/> |
| 37 | + <TextBlock Margin="6,0,0,0" Text="{Binding Branch, Mode=OneWay}"/> |
| 38 | + </StackPanel> |
| 39 | + |
| 40 | + <TextBlock Grid.Row="1" Grid.Column="0" |
30 | 41 | Classes="info_label" |
31 | 42 | HorizontalAlignment="Left" VerticalAlignment="Center" |
32 | 43 | Text="{DynamicResource Text.CommitDetail.Info.SHA}"/> |
33 | | - <StackPanel Grid.Row="0" Grid.Column="1" |
| 44 | + <StackPanel Grid.Row="1" Grid.Column="1" |
34 | 45 | Orientation="Horizontal" |
35 | 46 | Margin="8,0,0,0"> |
36 | | - <TextBlock Text="{Binding SHA, Converter={x:Static c:StringConverters.ToShortSHA}}" |
| 47 | + <Path Width="14" Height="14" Data="{StaticResource Icons.Commit}"/> |
| 48 | + |
| 49 | + <TextBlock Margin="8,0,0,0" |
| 50 | + Text="{Binding SHA, Converter={x:Static c:StringConverters.ToShortSHA}}" |
37 | 51 | VerticalAlignment="Center"/> |
38 | 52 |
|
39 | 53 | <Path Margin="6,0,0,0" |
|
69 | 83 | </Border> |
70 | 84 | </StackPanel> |
71 | 85 |
|
72 | | - <TextBlock Grid.Row="1" Grid.Column="0" |
| 86 | + <TextBlock Grid.Row="2" Grid.Column="0" |
73 | 87 | Classes="info_label" |
74 | 88 | HorizontalAlignment="Left" VerticalAlignment="Center" |
75 | 89 | Text="{DynamicResource Text.Submodule.URL}"/> |
76 | | - <TextBlock Grid.Row="1" Grid.Column="1" |
| 90 | + <TextBlock Grid.Row="2" Grid.Column="1" |
77 | 91 | Margin="8,0,0,0" |
78 | 92 | Text="{Binding URL}" |
79 | 93 | Foreground="{DynamicResource Brush.Link}" |
|
156 | 170 | Orientation="Horizontal" |
157 | 171 | Margin="8,0,0,0"> |
158 | 172 | <Path Width="14" Height="14" Margin="2,0,0,0" Data="{StaticResource Icons.Branch}"/> |
159 | | - |
160 | | - <TextBlock Margin="6,0,0,0" |
161 | | - Text="{Binding Branch, Mode=OneWay}" |
162 | | - IsVisible="{Binding Branch, Converter={x:Static StringConverters.IsNotNullOrEmpty}}"/> |
163 | | - <TextBlock Margin="6,0,0,0" |
164 | | - Text="--" |
165 | | - IsVisible="{Binding Branch, Converter={x:Static StringConverters.IsNullOrEmpty}}"/> |
| 173 | + <TextBlock Margin="6,0,0,0" Text="{Binding Branch, Mode=OneWay}"/> |
166 | 174 | </StackPanel> |
167 | 175 |
|
168 | 176 | <TextBlock Grid.Row="1" Grid.Column="0" |
|
0 commit comments