Bug fixe: comnet avatar
* web/Controllers/AccountController.cs: Fixes the avatar icon in comments * .gitignore: ignore `bfiles` * web/images/musician-923526_1.nb.jpg: * web/images/musician-923526_1.nb.xs.jpg: * web/images/musician-923526_1.nb.xxs.jpg: * web/images/musician-923526_1.nbb.jpg: * web/images/musician-923526_1.nbb.xs.jpg: * web/images/musician-923526_1.nbb.xxs.jpg: * totem-banner.xxs.xcf: * totem.xcf: totem custo
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@ -13,3 +13,4 @@ svg
|
||||
.nuget
|
||||
.gitignore
|
||||
|
||||
web/bfiles
|
||||
|
BIN
totem-banner.xxs.xcf
Normal file
BIN
totem-banner.xxs.xcf
Normal file
Binary file not shown.
@ -37,16 +37,17 @@ nav {
|
||||
padding: 2em;
|
||||
display: block;
|
||||
border-radius:1em;
|
||||
background: url("/images/live-concert-388160_1280.s.jpg") 50% 10em repeat fixed ;
|
||||
background: url("/images/live-concert-388160_1280.jpg") 50% 10em repeat fixed ;
|
||||
justify-content: space-around;
|
||||
min-height:5em;
|
||||
}
|
||||
|
||||
main {
|
||||
margin: 2em;
|
||||
padding: 2em;
|
||||
padding: 6em 2em 6em 2em;
|
||||
display: block;
|
||||
border-radius:1em;
|
||||
background: url("/images/musician-923526_1280.s.jpg") 50% 20em repeat fixed ;
|
||||
background: url("/images/musician-923526_1.nbb.jpg") 50% 20em repeat fixed ;
|
||||
}
|
||||
|
||||
footer {
|
||||
@ -133,14 +134,14 @@ textarea.fullwidth { min-height:10em; }
|
||||
|
||||
.panel,.bshpanel, aside {
|
||||
background-color: rgba(20,20,20,.8);
|
||||
border-radius:5px;
|
||||
margin:.5em;
|
||||
border-radius: 5px;
|
||||
margin: .5em;
|
||||
padding: .5em;
|
||||
}
|
||||
.spanel {
|
||||
max-width:24em;
|
||||
display: inline-block;
|
||||
margin:.3em;
|
||||
max-width: 24em;
|
||||
display: inline-block;
|
||||
margin: .3em;
|
||||
}
|
||||
.xspanel {
|
||||
max-width:13em;
|
||||
@ -178,13 +179,13 @@ a:visited {
|
||||
label {
|
||||
font-size: medium;
|
||||
}
|
||||
.editable {
|
||||
margin 1em;
|
||||
min-height:1em;
|
||||
border-radius: 1em;
|
||||
border: dashed rgb(020,20,256) 2px;
|
||||
.editable {
|
||||
margin 1em;
|
||||
min-height:1em;
|
||||
border-radius: 1em;
|
||||
border: dashed rgb(020,20,256) 2px;
|
||||
}
|
||||
#notifications {
|
||||
#notifications {
|
||||
padding: .5em;
|
||||
}
|
||||
|
||||
@ -302,24 +303,21 @@ input, select {
|
||||
}
|
||||
|
||||
@media all and (max-width: 640px) {
|
||||
header {
|
||||
margin-bottom:1em;
|
||||
background: url("/images/totem-banner.xs.jpg") 0 0 no-repeat fixed;
|
||||
}
|
||||
|
||||
nav {
|
||||
margin: 1em;
|
||||
padding: 1em;
|
||||
background: url("/images/live-concert-388160_1280.xxs.jpg") 50% 10% repeat fixed ;
|
||||
min-height:4em;
|
||||
background: url("/images/live-concert-388160_1280.s.jpg") 50% 10% repeat fixed ;
|
||||
}
|
||||
main {
|
||||
margin: 1em;
|
||||
padding: 1em;
|
||||
background: url("/images/musician-923526_1280.xxs.jpg") 50% 20em repeat fixed ;
|
||||
padding: 4em 1em 4em 1em;
|
||||
background: url("/images/musician-923526_1.nbb.xs.jpg") 50% 20em repeat fixed ;
|
||||
}
|
||||
footer {
|
||||
background: url("/images/drummer-652345_1280.xxs.jpg") 50% 90% repeat fixed ;
|
||||
background: url("/images/drummer-652345_1280.xs.jpg") 50% 90% repeat fixed ;
|
||||
padding: 1em;
|
||||
margin: 1em;
|
||||
}
|
||||
.menuitem {
|
||||
display: block;
|
||||
@ -342,19 +340,30 @@ header {
|
||||
|
||||
@media all and (max-width: 350px) {
|
||||
header {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
margin-top: 0;
|
||||
padding-top: 101px;
|
||||
margin-bottom:1em;
|
||||
background: url("/images/totem-banner.xxs.jpg") 0 0 no-repeat fixed;
|
||||
}
|
||||
nav {
|
||||
margin: 0.3em;
|
||||
padding: 0.3em;
|
||||
nav {
|
||||
margin: .5em;
|
||||
padding: .5em;
|
||||
min-height:3em;
|
||||
background: url("/images/live-concert-388160_1280.xxs.jpg") 50% 10% repeat fixed ;
|
||||
}
|
||||
main {
|
||||
margin: 0.3em;
|
||||
padding: 0.3em;}
|
||||
main {
|
||||
margin: .5em;
|
||||
padding: 3em .5em 3em .5em;
|
||||
background: url("/images/musician-923526_1.nbb.xxs.jpg") 50% 20em repeat fixed ;
|
||||
}
|
||||
footer {
|
||||
background: url("/images/drummer-652345_1280.xxs.jpg") 50% 90% repeat fixed ;
|
||||
|
||||
padding: 0em;
|
||||
margin: 0em;
|
||||
margin: 0.5em;
|
||||
padding: 0.5em;
|
||||
}
|
||||
.c2 { display:none; }
|
||||
.c2-alt { display:initial; }
|
||||
}
|
||||
|
@ -33,21 +33,25 @@ namespace Yavsc.Controllers
|
||||
/// <summary>
|
||||
/// Avatar the specified user.
|
||||
/// </summary>
|
||||
/// <param name="user">User.</param>
|
||||
/// <param name="id">User.</param>
|
||||
[AcceptVerbs (HttpVerbs.Get)]
|
||||
public ActionResult Avatar (string user)
|
||||
public ActionResult Avatar (string id)
|
||||
{
|
||||
ProfileBase pr = ProfileBase.Create (user);
|
||||
string avpath = (string ) pr.GetPropertyValue("Avatar") ;
|
||||
if (id == null)
|
||||
return new EmptyResult ();
|
||||
|
||||
ProfileBase pr = ProfileBase.Create (id);
|
||||
var avpath = pr.GetPropertyValue("Avatar");
|
||||
if (avpath == null) {
|
||||
FileInfo fia = new FileInfo (Server.MapPath (defaultAvatar));
|
||||
return File (fia.OpenRead (), defaultAvatarMimetype);
|
||||
}
|
||||
if (avpath.StartsWith ("~/")) {
|
||||
avpath = Server.MapPath (avpath);
|
||||
string avatarLocation = avpath as string;
|
||||
if (avatarLocation.StartsWith ("~/")) {
|
||||
avatarLocation = Server.MapPath (avatarLocation);
|
||||
}
|
||||
|
||||
WebRequest wr = WebRequest.Create (avpath);
|
||||
WebRequest wr = WebRequest.Create (avatarLocation);
|
||||
FileContentResult res;
|
||||
using (WebResponse resp = wr.GetResponse ()) {
|
||||
using (Stream str = resp.GetResponseStream ()) {
|
||||
|
@ -422,6 +422,12 @@
|
||||
<Content Include="images\totem-banner.png" />
|
||||
<Content Include="images\totem-banner.xxs.jpg" />
|
||||
<Content Include="images\totem-banner.xs.jpg" />
|
||||
<Content Include="images\musician-923526_1.nb.jpg" />
|
||||
<Content Include="images\musician-923526_1.nb.xs.jpg" />
|
||||
<Content Include="images\musician-923526_1.nb.xxs.jpg" />
|
||||
<Content Include="images\musician-923526_1.nbb.jpg" />
|
||||
<Content Include="images\musician-923526_1.nbb.xs.jpg" />
|
||||
<Content Include="images\musician-923526_1.nbb.xxs.jpg" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
|
||||
|
BIN
web/images/musician-923526_1.nb.jpg
Normal file
BIN
web/images/musician-923526_1.nb.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
BIN
web/images/musician-923526_1.nb.xs.jpg
Normal file
BIN
web/images/musician-923526_1.nb.xs.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 31 KiB |
BIN
web/images/musician-923526_1.nb.xxs.jpg
Normal file
BIN
web/images/musician-923526_1.nb.xxs.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.2 KiB |
BIN
web/images/musician-923526_1.nbb.jpg
Normal file
BIN
web/images/musician-923526_1.nbb.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
BIN
web/images/musician-923526_1.nbb.xs.jpg
Normal file
BIN
web/images/musician-923526_1.nbb.xs.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.4 KiB |
BIN
web/images/musician-923526_1.nbb.xxs.jpg
Normal file
BIN
web/images/musician-923526_1.nbb.xxs.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.3 KiB |
Reference in New Issue
Block a user