-
Notifications
You must be signed in to change notification settings - Fork 19
Added name field #3
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
Open
ArunVenkata
wants to merge
1
commit into
Mitalee:master
Choose a base branch
from
ArunVenkata:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
import lib.util_datetime# import tzware_datetime | ||
import lib.util_sqlalchemy# import AwareDateTime | ||
|
||
|
||
"""empty message | ||
|
||
Revision ID: a6db2c3a9b0c | ||
Revises: 5430b6f4296f | ||
Create Date: 2020-02-10 17:00:07.205728 | ||
|
||
""" | ||
|
||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'a6db2c3a9b0c' | ||
down_revision = '5430b6f4296f' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('posts', sa.Column('name', sa.String(length=128))) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column('posts', 'name') | ||
# ### end Alembic commands ### |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,75 +1,83 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
|
||
<title>Posts</title> | ||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | ||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | ||
|
||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> | ||
|
||
<link rel="stylesheet" type="text/css" href="../static/css/styles.css"> | ||
<style type="text/css"> | ||
#us{ | ||
float: right; | ||
margin-right: 20px; | ||
margin-top: 10px; | ||
} | ||
#us h3{ | ||
margin: 0 0 0 0; | ||
} | ||
.ps{ | ||
width: 60%; | ||
margin-top: 20px; | ||
margin-left: 20% | ||
} | ||
#icon{ | ||
float: right; | ||
margin-top: -15px; | ||
} | ||
#signout{ | ||
width: 100px; | ||
height: 20px; | ||
} | ||
#signout a{ | ||
padding: 2px 0px 2px 20px; | ||
} | ||
#us { | ||
float: right; | ||
margin-right: 20px; | ||
margin-top: 10px; | ||
} | ||
|
||
#us h3 { | ||
margin: 0 0 0 0; | ||
} | ||
|
||
.ps { | ||
width: 60%; | ||
margin-top: 20px; | ||
margin-left: 20% | ||
} | ||
|
||
#icon { | ||
float: right; | ||
margin-top: -15px; | ||
} | ||
|
||
#signout { | ||
width: 100px; | ||
height: 20px; | ||
} | ||
|
||
#signout a { | ||
padding: 2px 0px 2px 20px; | ||
} | ||
</style> | ||
</head> | ||
</head> | ||
|
||
<body> | ||
<div> | ||
<ul class="nav nav-tabs"> | ||
<li role="presentation"><a href="/add">Add Posts</a></li> | ||
</ul> | ||
</div> | ||
{% with messages = get_flashed_messages() %} | ||
{% if messages %} | ||
{% for message in messages %} | ||
<h3 class="flashes" align="center" style="color:#337ab7">{{ message }}</h3> | ||
{% endfor %} | ||
{% endif %} | ||
{% endwith %} | ||
<div class="ps"> | ||
{% for each_post in posts %} | ||
<div class="panel panel-info"> | ||
<div class="panel-heading"> | ||
<div><h3 class="panel-title">{{each_post.title}}</h3></div> | ||
<div id="icon"> | ||
<a class="glyphicon glyphicon-sunglasses" href="/detail/{{ each_post.url }}"></a>    | ||
<a class="glyphicon glyphicon-pencil" href="/update/{{ each_post.id }}"></a>    | ||
<a class="glyphicon glyphicon-trash" id="del" href="/delete/{{ each_post.id }}"></a> | ||
<div> | ||
<ul class="nav nav-tabs"> | ||
<li role="presentation"><a href="/add">Add Posts</a></li> | ||
</ul> | ||
</div> | ||
{% with messages = get_flashed_messages() %} {% if messages %} {% for message in messages %} | ||
<h3 class="flashes" align="center" style="color:#337ab7">{{ message }}</h3> | ||
{% endfor %} {% endif %} {% endwith %} | ||
<div class="ps"> | ||
{% for each_post in posts %} | ||
<div class="panel panel-info"> | ||
<div class="panel-heading"> | ||
<div> | ||
<h3 class="panel-title">{{each_post.title}}</h3> | ||
</div> | ||
<div id="icon"> | ||
<a class="glyphicon glyphicon-sunglasses" href="/detail/{{ each_post.url }}"></a>    | ||
<a class="glyphicon glyphicon-pencil" href="/update/{{ each_post.id }}"></a>    | ||
<a class="glyphicon glyphicon-trash" id="del" href="/delete/{{ each_post.id }}"></a> | ||
</div> | ||
</div> | ||
<div class="panel-body"> | ||
<p>{{ each_post.body|safe }}</p> | ||
<p>Author: {{ each_post.name }}</p> | ||
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. Added Author Info here. |
||
<p>Tags: {{ each_post.tagstring }}</p> | ||
<p>Published: {{ each_post.visible }}</p> | ||
<p>Last updated: {{ each_post.updated_on.strftime('%m/%d/%Y') }}</p> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
<div class="panel-body"><p>{{ each_post.body|safe }}</p> | ||
<p>Tags: {{ each_post.tagstring }}</p> | ||
<p>Published: {{ each_post.visible }}</p> | ||
<p>Last updated: {{ each_post.updated_on.strftime('%m/%d/%Y') }}</p> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</body> | ||
|
||
</html> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Some Formatting Changes can be ignored.