|
59 | 59 | <Rectangle Height=".65" Margin="8,8,0,8" Fill="{DynamicResource Brush.Border2}" VerticalAlignment="Center"/> |
60 | 60 |
|
61 | 61 | <!-- Base Information --> |
62 | | - <Grid RowDefinitions="24,Auto,Auto,Auto,Auto" ColumnDefinitions="96,*"> |
| 62 | + <Grid RowDefinitions="24,Auto,Auto,Auto" ColumnDefinitions="96,*"> |
63 | 63 | <!-- SHA --> |
64 | 64 | <TextBlock Grid.Row="0" Grid.Column="0" Classes="info_label" VerticalAlignment="Top" Margin="0,4,0,0" Text="{DynamicResource Text.CommitDetail.Info.SHA}" /> |
65 | 65 | <StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal" Height="24"> |
|
150 | 150 | </ItemsControl.ItemTemplate> |
151 | 151 | </ItemsControl> |
152 | 152 |
|
153 | | - <!-- CHILDREN --> |
154 | | - <TextBlock Grid.Row="2" Grid.Column="0" Classes="info_label" VerticalAlignment="Top" Margin="0,4,0,0" Text="{DynamicResource Text.CommitDetail.Info.Children}" IsVisible="{Binding #ThisControl.Children, Converter={x:Static c:ListConverters.IsNotNullOrEmpty}}"/> |
155 | | - <ItemsControl Grid.Row="2" Grid.Column="1" Margin="12,0,0,0" ItemsSource="{Binding #ThisControl.Children}" IsVisible="{Binding #ThisControl.Children, Converter={x:Static c:ListConverters.IsNotNullOrEmpty}}"> |
156 | | - <ItemsControl.ItemsPanel> |
157 | | - <ItemsPanelTemplate> |
158 | | - <WrapPanel Orientation="Horizontal" VerticalAlignment="Center" ItemHeight="24"/> |
159 | | - </ItemsPanelTemplate> |
160 | | - </ItemsControl.ItemsPanel> |
161 | | - |
162 | | - <ItemsControl.ItemTemplate> |
163 | | - <DataTemplate> |
164 | | - <TextBlock Text="{Binding Converter={x:Static c:StringConverters.ToShortSHA}}" |
165 | | - FontFamily="{DynamicResource Fonts.Monospace}" |
166 | | - Foreground="DarkOrange" |
167 | | - TextDecorations="Underline" |
168 | | - Cursor="Hand" |
169 | | - Margin="0,0,16,0" |
170 | | - PointerEntered="OnSHAPointerEntered" |
171 | | - PointerPressed="OnSHAPressed" |
172 | | - ToolTip.ShowDelay="0"> |
173 | | - <ToolTip.IsOpen> |
174 | | - <MultiBinding Converter="{x:Static BoolConverters.And}"> |
175 | | - <Binding Path="$self.IsPointerOver"/> |
176 | | - <Binding Path="$self.(ToolTip.Tip)" Converter="{x:Static ObjectConverters.IsNotNull}"/> |
177 | | - </MultiBinding> |
178 | | - </ToolTip.IsOpen> |
179 | | - |
180 | | - <TextBlock.DataTemplates> |
181 | | - <DataTemplate DataType="m:Commit"> |
182 | | - <StackPanel MinWidth="400" Orientation="Vertical"> |
183 | | - <Grid ColumnDefinitions="Auto,*,Auto"> |
184 | | - <v:Avatar Grid.Column="0" Width="16" Height="16" VerticalAlignment="Center" IsHitTestVisible="False" User="{Binding Author}"/> |
185 | | - <TextBlock Grid.Column="1" Text="{Binding Author.Name}" Margin="8,0,0,0"/> |
186 | | - <v:DateTimePresenter Grid.Column="2" |
187 | | - Margin="8,0,0,0" |
188 | | - Timestamp="{Binding CommitterTime}" |
189 | | - Foreground="{DynamicResource Brush.FG2}"/> |
190 | | - </Grid> |
191 | | - |
192 | | - <TextBlock Margin="0,8,0,0" Text="{Binding Subject}" TextWrapping="Wrap"/> |
193 | | - </StackPanel> |
194 | | - </DataTemplate> |
195 | | - </TextBlock.DataTemplates> |
196 | | - </TextBlock> |
197 | | - </DataTemplate> |
198 | | - </ItemsControl.ItemTemplate> |
199 | | - </ItemsControl> |
200 | | - |
201 | 153 | <!-- REFS --> |
202 | | - <TextBlock Grid.Row="3" Grid.Column="0" Classes="info_label" VerticalAlignment="Top" Margin="0,4,0,0" Text="{DynamicResource Text.CommitDetail.Info.Refs}" IsVisible="{Binding HasDecorators}"/> |
203 | | - <Border Grid.Row="3" Grid.Column="1" Margin="12,0,0,0" MinHeight="24" IsVisible="{Binding HasDecorators}"> |
| 154 | + <TextBlock Grid.Row="2" Grid.Column="0" Classes="info_label" VerticalAlignment="Top" Margin="0,4,0,0" Text="{DynamicResource Text.CommitDetail.Info.Refs}" IsVisible="{Binding HasDecorators}"/> |
| 155 | + <Border Grid.Row="2" Grid.Column="1" Margin="12,0,0,0" MinHeight="24" IsVisible="{Binding HasDecorators}"> |
204 | 156 | <v:CommitRefsPresenter Foreground="{DynamicResource Brush.FG1}" |
205 | 157 | FontSize="12" |
206 | 158 | AllowWrap="True" |
|
210 | 162 | </Border> |
211 | 163 |
|
212 | 164 | <!-- Messages --> |
213 | | - <TextBlock Grid.Row="4" Grid.Column="0" Classes="info_label" VerticalAlignment="Top" Margin="0,4,0,0" Text="{DynamicResource Text.CommitDetail.Info.Message}" /> |
214 | | - <v:CommitMessagePresenter Grid.Row="4" Grid.Column="1" |
| 165 | + <TextBlock Grid.Row="3" Grid.Column="0" Classes="info_label" VerticalAlignment="Top" Margin="0,4,0,0" Text="{DynamicResource Text.CommitDetail.Info.Message}" /> |
| 166 | + <v:CommitMessagePresenter Grid.Row="3" Grid.Column="1" |
215 | 167 | Margin="12,4,0,0" |
216 | 168 | Foreground="{DynamicResource Brush.FG1}" |
217 | 169 | FullMessage="{Binding #ThisControl.FullMessage}" |
|
0 commit comments