Skip to content

Commit

Permalink
Add home section show project description
Browse files Browse the repository at this point in the history
  • Loading branch information
maikebing committed Mar 9, 2019
1 parent 3b2050d commit 0a26807
Show file tree
Hide file tree
Showing 7 changed files with 149 additions and 104 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ The latest build of the Visual Studio Extension is available at the [Open VsixGa


## What's new ?
##

* Added context menu to the ListView in ConnectionSectionView with option to open or delete the local repo. Deleting send the repo directory to the Recycling Bin.
* AddOpen URL from clipboard ,Right click on editor, if repository is hosted on Gitea Server , you can jump to master/current branch/current revision's blob page and blame/commits page. If selecting line(single, range) in editor, jump with line number fragment.
* Added repo descriptions to CloneView.
* Minor enhancements.
* Clone descriptions
* Project.Description

#### V1.0.47

* Resolved error when package is initializing. #3
Expand Down
8 changes: 7 additions & 1 deletion src/Gitea.TeamFoundation.14/Home/GiteaHomeSection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ public override void Initialize(object sender, SectionInitializeEventArgs e)
public override async void Refresh()
{
IsVisible = await _tes.IsGiteaRepoAsync() ;
var view = (this.View as TextBlock);
if (view != null)
{
view.Text =( _tes.Project != null && !string.IsNullOrEmpty(_tes.Project.Description) )? _tes.Project.Description : Strings.Description;
}
base.Refresh();
}

Expand All @@ -44,9 +49,10 @@ protected override object CreateView(SectionInitializeEventArgs e)
{
return new TextBlock
{
Text = Strings.Description,
Text = (_tes.Project != null && !string.IsNullOrEmpty(_tes.Project.Description)) ? _tes.Project.Description : Strings.Description,
TextWrapping = System.Windows.TextWrapping.Wrap
};
}

}
}
Loading

0 comments on commit 0a26807

Please sign in to comment.