Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 6ac2d95

Browse files
committed
lol at least i tried
1 parent 4edf726 commit 6ac2d95

File tree

1 file changed

+44
-1
lines changed

1 file changed

+44
-1
lines changed

src/GitHub.VisualStudio.UI/Views/Documents/PullRequestPageView.xaml

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,50 @@
126126
<ItemsControl Name="timeline" ItemsSource="{Binding Timeline}">
127127
<ItemsControl.Resources>
128128
<DataTemplate DataType="{x:Type ghfvs:CommentViewModel}">
129-
<v:CommentView/>
129+
<Grid Margin="0 16">
130+
<Grid.ColumnDefinitions>
131+
<ColumnDefinition Width="40" />
132+
<ColumnDefinition Width="*" />
133+
</Grid.ColumnDefinitions>
134+
135+
<v:ActorAvatarView Width="35"
136+
Height="35"
137+
VerticalAlignment="Top"
138+
Margin="0 0 5 0"
139+
ViewModel="{Binding Author}" />
140+
141+
<Border BorderBrush="{DynamicResource GitHubHeaderSeparatorBrush}" BorderThickness="1"
142+
Grid.Column="1" VerticalAlignment="Top">
143+
<StackPanel Orientation="Vertical">
144+
<Border Padding="6" Background="{DynamicResource GitHubBranchNameBackgroundBrush}" BorderBrush="{DynamicResource GitHubHeaderSeparatorBrush}" BorderThickness="0 0 0 1">
145+
<StackPanel Orientation="Horizontal" DockPanel.Dock="Left" >
146+
<TextBlock Foreground="{DynamicResource GitHubVsToolWindowText}" Margin="4">
147+
<Run FontWeight="Bold" Text="{Binding Author.Login}" />
148+
<Run Text="commented" />
149+
</TextBlock>
150+
151+
<ui:GitHubActionLink Content="{Binding CreatedAt, Converter={ui:DurationToStringConverter}}"
152+
Command="{Binding OpenOnGitHub}"
153+
Foreground="{DynamicResource GitHubVsToolWindowText}"
154+
VerticalAlignment="Center"
155+
Opacity="0.75" />
156+
<Border Background="{DynamicResource VsBrush.InfoBackground}"
157+
BorderBrush="{DynamicResource VsBrush.AccentPale}"
158+
BorderThickness="1"
159+
CornerRadius="3"
160+
Padding="2 1"
161+
VerticalAlignment="Center"
162+
Visibility="{Binding IsPending, Converter={ui:BooleanToVisibilityConverter}, FallbackValue=Collapsed}">
163+
<TextBlock FontSize="10" Text="{x:Static ghfvs:Resources.Pending}" />
164+
</Border>
165+
</StackPanel>
166+
</Border>
167+
168+
<markdig:MarkdownViewer Name="bodyMarkdown" Margin="8" Foreground="{DynamicResource VsBrush.WindowText}" Markdown="{Binding Body}"/>
169+
</StackPanel>
170+
</Border>
171+
</Grid>
172+
130173
</DataTemplate>
131174

132175
<DataTemplate DataType="{x:Type ghfvs:CommentViewModelDesigner}">

0 commit comments

Comments
 (0)