-
Notifications
You must be signed in to change notification settings - Fork 644
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Prefix]Add visual indicator for Reserved prefix Packages #4601
Changes from 6 commits
11b1912
002f339
87f5279
5f4a367
6030ca7
fd7d099
fb6b352
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,14 @@ | |
<div class="package-header"> | ||
<a class="package-title" href="@Url.Package(Model.Id, Model.UseVersion ? Model.Version : null)">@Html.BreakWord(Model.Id)</a> | ||
|
||
@if (Model.IsVerified.HasValue && Model.IsVerified.Value) | ||
{ | ||
<img style="vertical-align: top; margin-left: 3px; margin-top: 3px; width: 20px" | ||
src="~/Content/gallery/img/reserved-indicator.svg" | ||
@ViewHelpers.ImageFallback(Url.Absolute("~/Content/gallery/img/reserved-indicator-20x20.png")) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The fallback seems unnecessary as the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fallback is for browsers that don't render svg, some older IE versions etc. This is common through out our codebase. |
||
title="@Strings.ReservedNamespace_ReservedIndicatorTooltip"/> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I don't think we use Strings anywhere else in views. Maybe use just a plain C# string? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think using the strings is most appropriate. This needs to be reused in another place as well. |
||
} | ||
|
||
<span class="package-by"> | ||
by: | ||
@foreach (var owner in Model.Owners) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this to CSS