Bug fix
* style.css: yastyle * NpgsqlBlogProvider.cs: Fixes last commit in case of DBNull reading the photo
This commit is contained in:
parent
92e42572d1
commit
ec99edcc4e
4 changed files with 17 additions and 6 deletions
|
|
@ -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>
|
2015-10-08 Paul Schneider <paul@pschneider.fr>
|
||||||
|
|
||||||
* NpgsqlBlogProvider.cs: implements a blog post photo storage
|
* NpgsqlBlogProvider.cs: implements a blog post photo storage
|
||||||
|
|
|
||||||
|
|
@ -303,7 +303,11 @@ namespace Npgsql.Web.Blog
|
||||||
be.Posted = rdr.GetDateTime (rdr.GetOrdinal ("posted"));
|
be.Posted = rdr.GetDateTime (rdr.GetOrdinal ("posted"));
|
||||||
be.Visible = rdr.GetBoolean (rdr.GetOrdinal ("visible"));
|
be.Visible = rdr.GetBoolean (rdr.GetOrdinal ("visible"));
|
||||||
be.Id = rdr.GetInt64 (rdr.GetOrdinal ("_id"));
|
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);
|
bec.Add (be);
|
||||||
}
|
}
|
||||||
rdr.Close ();
|
rdr.Close ();
|
||||||
|
|
|
||||||
|
|
@ -17,13 +17,12 @@ input, textarea, checkbox {
|
||||||
|
|
||||||
header {
|
header {
|
||||||
border-radius:10px;
|
border-radius:10px;
|
||||||
margin: .5em;
|
margin: 1em;
|
||||||
padding: 3em;
|
padding: 1em;
|
||||||
padding-top: 5em;
|
padding-top: 5em;
|
||||||
display: block;
|
display: block;
|
||||||
min-height: 10em;
|
|
||||||
text-align: center;
|
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 {
|
header h1, header a {
|
||||||
background-color: rgba(0,0,0,.5);
|
background-color: rgba(0,0,0,.5);
|
||||||
|
|
@ -289,7 +288,6 @@ input, select {
|
||||||
header {
|
header {
|
||||||
margin: .5em;
|
margin: .5em;
|
||||||
padding: .5em;
|
padding: .5em;
|
||||||
min-height: 3em;
|
|
||||||
padding-top: 5em;
|
padding-top: 5em;
|
||||||
}
|
}
|
||||||
nav {
|
nav {
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
2015-10-08 Paul Schneider <paul@pschneider.fr>
|
||||||
|
|
||||||
|
* style.css: yastyle
|
||||||
|
|
||||||
2015-10-08 Paul Schneider <paul@pschneider.fr>
|
2015-10-08 Paul Schneider <paul@pschneider.fr>
|
||||||
|
|
||||||
* BlogsController.cs: implements a method to update the photo
|
* BlogsController.cs: implements a method to update the photo
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue