Skip to content

Commit

Permalink
Merge pull request #15 from cul-it/develop
Browse files Browse the repository at this point in the history
Base template search bar update
  • Loading branch information
erickpeirson authored Feb 3, 2018
2 parents 4d2be8f + aa7cd5d commit 78d12fc
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Provides application for development purposes."""

from baseui.factory import create_web_app
from base.factory import create_web_app

app = create_web_app()
2 changes: 1 addition & 1 deletion arxiv/base/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def __init__(self, app: Optional[Flask] = None) -> None:
def init_app(self, app: Flask) -> None:
"""Create and register the base UI blueprint."""
blueprint = Blueprint(
'baseui',
'base',
__name__,
template_folder='templates',
static_folder='static',
Expand Down
2 changes: 1 addition & 1 deletion arxiv/base/factory.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Application factory for BaseUI app (development and testing only)."""
"""Application factory for Base app (development and testing only)."""

import logging
import os
Expand Down
2 changes: 1 addition & 1 deletion arxiv/base/routes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Provides routes for verifying baseui templates."""
"""Provides routes for verifying base templates."""

from typing import Any, Tuple
from flask import Blueprint, render_template
Expand Down
7 changes: 4 additions & 3 deletions arxiv/base/templates/base/macros.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
<div class="control">
<div class="select is-small">
<select name="searchtype" aria-label="Field to search">
<option selected="selected">All fields</option>
<option>Title</option>
<option>Author</option>
<option value='all' selected="selected">All fields</option>
<option value='title'>Title</option>
<option value='author'>Author</option>
<option value='abstract'>Abstract</option>
<option>arXiv ID</option>
</select>
</div>
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name='arxiv-base',
version='0.1',
version='0.1.3',
packages=find_packages(exclude=['tests.*']),
zip_safe=False,
include_package_data=True
Expand Down

0 comments on commit 78d12fc

Please sign in to comment.