Margin bottom to textarea
This commit is contained in:
parent
cb60b8df06
commit
1b4d9d0cbe
2 changed files with 36 additions and 0 deletions
35
fabfile.py
vendored
35
fabfile.py
vendored
|
@ -166,6 +166,7 @@ def collectstatic():
|
||||||
"""
|
"""
|
||||||
Collect static files from apps and other locations in a single location.
|
Collect static files from apps and other locations in a single location.
|
||||||
"""
|
"""
|
||||||
|
collect_remote_statics()
|
||||||
dj('collectstatic --link --noinput')
|
dj('collectstatic --link --noinput')
|
||||||
dj('storagei18n')
|
dj('storagei18n')
|
||||||
dj('compress')
|
dj('compress')
|
||||||
|
@ -212,6 +213,40 @@ def requirements(name=None, upgrade=False):
|
||||||
))
|
))
|
||||||
|
|
||||||
|
|
||||||
|
@task
|
||||||
|
@roles('web')
|
||||||
|
def collect_remote_statics(name=None):
|
||||||
|
"""
|
||||||
|
Add leaflet and leaflet.draw in a repository watched by collectstatic.
|
||||||
|
"""
|
||||||
|
remote_static_dir = '{project_dir}/{project_name}/remote_static'.format(**env)
|
||||||
|
run_as_umap('mkdir -p {0}'.format(remote_static_dir))
|
||||||
|
remote_repositories = {
|
||||||
|
'storage': 'git://github.com/yohanboniface/Leaflet.Storage.git@master',
|
||||||
|
}
|
||||||
|
with cd(remote_static_dir):
|
||||||
|
for subdir, path in remote_repositories.iteritems():
|
||||||
|
if name and name != subdir:
|
||||||
|
continue
|
||||||
|
repository, branch = path.split('@')
|
||||||
|
if "#" in branch:
|
||||||
|
branch, ref = branch.split('#')
|
||||||
|
else:
|
||||||
|
ref = branch
|
||||||
|
with hide("running", "stdout"):
|
||||||
|
exists = run_as_umap('if [ -d "{0}" ]; then echo 1; fi'.format(subdir))
|
||||||
|
if exists:
|
||||||
|
with cd(subdir):
|
||||||
|
run_as_umap('git checkout {0}'.format(branch))
|
||||||
|
run_as_umap('git pull origin {0} --tags'.format(branch))
|
||||||
|
else:
|
||||||
|
run_as_umap('git clone {0} {1}'.format(repository, subdir))
|
||||||
|
with cd(subdir):
|
||||||
|
run_as_umap('git checkout {0}'.format(ref))
|
||||||
|
if subdir == "leaflet":
|
||||||
|
run_as_umap('npm install')
|
||||||
|
run_as_umap('jake build')
|
||||||
|
|
||||||
#==============================================================================
|
#==============================================================================
|
||||||
# Helper functions
|
# Helper functions
|
||||||
#==============================================================================
|
#==============================================================================
|
||||||
|
|
|
@ -199,6 +199,7 @@ input:-moz-placeholder, :-moz-placeholder {
|
||||||
|
|
||||||
#storage-ui-container textarea {
|
#storage-ui-container textarea {
|
||||||
height: 100px;
|
height: 100px;
|
||||||
|
margin-bottom: 14px;
|
||||||
}
|
}
|
||||||
#storage-ui-container select {
|
#storage-ui-container select {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
|
|
Loading…
Reference in a new issue