Bug fix
* style.css: yastyle * NpgsqlBlogProvider.cs: Fixes last commit in case of DBNull reading the photo
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
2015-10-08 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* NpgsqlBlogProvider.cs: Fixes last commit in case of DBNull
|
||||
reading the photo
|
||||
|
||||
2015-10-08 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* NpgsqlBlogProvider.cs: implements a blog post photo storage
|
||||
|
@ -303,7 +303,11 @@ namespace Npgsql.Web.Blog
|
||||
be.Posted = rdr.GetDateTime (rdr.GetOrdinal ("posted"));
|
||||
be.Visible = rdr.GetBoolean (rdr.GetOrdinal ("visible"));
|
||||
be.Id = rdr.GetInt64 (rdr.GetOrdinal ("_id"));
|
||||
be.Photo = rdr.GetString (rdr.GetOrdinal ("photo"));
|
||||
{
|
||||
int oph = rdr.GetOrdinal ("photo");
|
||||
if (!rdr.IsDBNull (oph))
|
||||
be.Photo = rdr.GetString (oph);
|
||||
}
|
||||
bec.Add (be);
|
||||
}
|
||||
rdr.Close ();
|
||||
|
@ -17,13 +17,12 @@ input, textarea, checkbox {
|
||||
|
||||
header {
|
||||
border-radius:10px;
|
||||
margin: .5em;
|
||||
padding: 3em;
|
||||
margin: 1em;
|
||||
padding: 1em;
|
||||
padding-top: 5em;
|
||||
display: block;
|
||||
min-height: 10em;
|
||||
text-align: center;
|
||||
background: url("/images/totemprod.png") 0 0 no-repeat fixed;
|
||||
background: url("/images/totemprod.png") 50% 0 no-repeat fixed;
|
||||
}
|
||||
header h1, header a {
|
||||
background-color: rgba(0,0,0,.5);
|
||||
@ -289,7 +288,6 @@ input, select {
|
||||
header {
|
||||
margin: .5em;
|
||||
padding: .5em;
|
||||
min-height: 3em;
|
||||
padding-top: 5em;
|
||||
}
|
||||
nav {
|
||||
|
@ -1,3 +1,7 @@
|
||||
2015-10-08 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* style.css: yastyle
|
||||
|
||||
2015-10-08 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* BlogsController.cs: implements a method to update the photo
|
||||
|
Reference in New Issue
Block a user