pax_global_header 0000666 0000000 0000000 00000000064 12572375337 0014530 g ustar 00root root 0000000 0000000 52 comment=8ed6d9defa2f3c5321b91b48c3e5e195e97b0046
rdiffweb-v0.7.1/ 0000775 0000000 0000000 00000000000 12572375337 0013513 5 ustar 00root root 0000000 0000000 rdiffweb-v0.7.1/.gitignore 0000664 0000000 0000000 00000000452 12572375337 0015504 0 ustar 00root root 0000000 0000000 *.py[co]
# Packages
*.egg
*.egg-info
dist
build
eggs
parts
bin
var
sdist
develop-eggs
.installed.cfg
# Installer logs
pip-log.txt
# Unit test / coverage reports
.coverage
.tox
#Translations
*.mo
#Mr Developer
.mr.developer.cfg
/node_modules/
.project
.externalToolBuilders
.settings
/ez_setup
rdiffweb-v0.7.1/.pydevproject 0000664 0000000 0000000 00000000660 12572375337 0016234 0 ustar 00root root 0000000 0000000
Default
python 2.7
/${PROJECT_DIR_NAME}/rdiffweb
rdiffweb-v0.7.1/Gruntfile.js 0000664 0000000 0000000 00000004430 12572375337 0016011 0 ustar 00root root 0000000 0000000 // rdiffweb, A web interface to rdiff-backup repositories
// Copyright (C) 2014 rdiffweb contributors
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see .
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
jshint: {
options: {
jshintrc: '.jshintrc'
},
all: [
'Gruntfile.js',
'rdiffweb/static/js/*.js',
'!rdiffweb/static/js/plugins/*.js',
'!rdiffweb/static/js/scripts.min.js'
]
},
less: {
dist: {
options: {
strictMath: true,
outputSourceFiles: true
},
files: {
'rdiffweb/static/css/main.min.css': [
'rdiffweb/static/less/main.less'
]
}
}
},
uglify: {
dist: {
files: {
'rdiffweb/static/js/scripts.min.js': [
'rdiffweb/static/js/plugins/*.js',
'rdiffweb/static/js/_*.js'
]
}
}
},
watch: {
less: {
files: [
'rdiffweb/static/less/*.less'
],
tasks: ['less']
},
js: {
files: [
'<%= jshint.all %>'
],
tasks: ['jshint','uglify']
}
},
clean: {
dist: [
'rdiffweb/static/css/main.min.css',
'rdiffweb/static/js/scripts.min.js'
]
}
});
// Load tasks
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-less');
// Register tasks
grunt.registerTask('default', [
'clean',
'less',
'uglify'
]);
grunt.registerTask('dev', [
'watch'
]);
};
rdiffweb-v0.7.1/LICENSE 0000664 0000000 0000000 00000104512 12572375337 0014523 0 ustar 00root root 0000000 0000000 GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
Copyright (C)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
Copyright (C)
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
. rdiffweb-v0.7.1/PKG-INFO 0000664 0000000 0000000 00000000624 12572375337 0014612 0 ustar 00root root 0000000 0000000 Metadata-Version: 1.0
Name: rdiffweb
Version: 0.7.0
Summary: A web interface to rdiff-backup repositories
Home-page: http://www.patrikdufresne.com/en/rdiffweb/
Author: Patrik Dufresne
Author-email: info@patrikdufresne.com
License: GPLv3
Description: Originally developped by Josh Nisly, rdiffweb is a web interface
for browsing and restoring from rdiff-backup repositories.
Platform: POSIX
rdiffweb-v0.7.1/README.md 0000664 0000000 0000000 00000003020 12572375337 0014765 0 ustar 00root root 0000000 0000000 rdiffweb
========
Release under GPLv3
# Installation
To install rdifWeb, you need to install the the prerequisites. On Debian distribution you may proceed as follow.
sudo apt-get install python-cherrypy3 python-pysqlite2 libsqlite3-dev python-jinja2 python-setuptools python-babel rdiff-backup
Then you may download a snapshot of the repository and proceed with the installation on your system.
wget --no-check-certificate -O rdiffweb.tar.gz https://github.com/ikus060/rdiffweb/archive/master.tar.gz
tar zxf rdiffweb.tar.gz
cd rdiffweb-*
python setup.py build
sudo python setup.py install
sudo update-rc.d rdiffweb defaults
Start rdiffweb server using this command line.
sudo /etc/init.d/rdiffweb start
Proceeding with the setup will initialise your database by creating a default admin user with the following username and password:
* username : admin
* password : admin123
Configure rdiffweb using web interface.
http://localhost:8080/setup
By default, the web server is listening on port 8080 and is accessible via the following URL.
http://server_name:8080
Translation
===========
Reference http://babel.edgewall.org/wiki/Documentation/setup.html
rdiffweb may be translated. This section describe briefly how to translate
rdiffweb. It's not a complete instruction set, it's merely a reminder.
Extract the strings to be translated.
./setup.py extract_messages --output-file rdiffweb/locales/messages.pot
./setup.py compile_catalog --directory rdiffweb/locales --locale fr
rdiffweb-v0.7.1/babel.cfg 0000664 0000000 0000000 00000001300 12572375337 0015233 0 ustar 00root root 0000000 0000000 # This file is used in conjonction with babel to auto generate .po file for
# translation.
#
# This file is indented to be used by executing this command line:
#
# ./setup.py extract_messages --output-file rdiffweb/locales/messages.pot
#
# ./setup.py init_catalog -i rdiffweb/locales/messages.pot --output-dir rdiffweb/locales/ --locale fr
#
# ./setup.py compile_catalog --directory rdiffweb/locales/ --locale fr
#
#
# ref.:
# * http://another-gae-blog.googlecode.com/git/jinja2_i18n_howto.txt
# * http://babel.pocoo.org/docs/setup/
# * https://github.com/getpelican/pelican/issues/92
#
[python: **.py]
[jinja2: **/templates/**.html]
extensions=jinja2.ext.autoescape,jinja2.ext.with_
encoding = utf-8 rdiffweb-v0.7.1/extras/ 0000775 0000000 0000000 00000000000 12572375337 0015021 5 ustar 00root root 0000000 0000000 rdiffweb-v0.7.1/extras/init/ 0000775 0000000 0000000 00000000000 12572375337 0015764 5 ustar 00root root 0000000 0000000 rdiffweb-v0.7.1/extras/init/rdiffweb 0000775 0000000 0000000 00000010377 12572375337 0017512 0 ustar 00root root 0000000 0000000 #!/bin/sh
# rdiffweb, A web interface to rdiff-backup repositories
# Copyright (C) 2014 rdiffweb contributors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
# Basic support for the Linux Standard Base Specification 3.1.0
### BEGIN INIT INFO
# Provides: rdiffweb
# Required-Start: $local_fs $network $named $time $syslog
# Required-Stop: $local_fs $network $named $time $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: Manages the rdiffweb daemon
### END INIT INFO
## Options you may change ##
DEBUG=0
AUTORELOAD=0
## Options you should probably not change ##
DESC="rdiffweb server"
NAME=rdiffweb
DAEMON=/usr/local/bin/$NAME
DAEMON_ARGS=""
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
LOGFILE="/var/log/$NAME.log"
ACCESSLOGFILE="/var/log/$NAME-access.log"
# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0
# Read configuration variable file if it is present
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
# Load the VERBOSE setting and other rcS variables
#. /lib/init/vars.sh
# Define LSB log_* functions.
# Depend on lsb-base (>= 3.2-14) to ensure that this file is present
# and status_of_proc is working.
. /lib/lsb/init-functions
## Build extra options ##
DAEMON_ARGS="--log-access-file=$ACCESSLOGFILE"
if [ "$DEBUG" = "1" ]; then
DAEMON_ARGS="$DAEMON_ARGS --debug"
fi
if [ "$AUTORELOAD" = "1" ]; then
DAEMON_ARGS="$DAEMON_ARGS --autoreload"
fi
#
# Function that starts the daemon/service
#
do_start()
{
# Return
# 0 if daemon has been started
# 1 if daemon was already running
# 2 if daemon could not be started
start-stop-daemon --start --background --quiet --pidfile $PIDFILE --test \
--startas $DAEMON > /dev/null \
|| return 1
start-stop-daemon --start --background --quiet --pidfile $PIDFILE --make-pidfile \
--startas /bin/bash -- -c "exec $DAEMON $DAEMON_ARGS >> $LOGFILE 2>&1" \
|| return 2
}
#
# Function that stops the daemon/service
#
do_stop()
{
# Return
# 0 if daemon has been stopped
# 1 if daemon was already stopped
# 2 if daemon could not be stopped
# other if a failure occurred
start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME
RETVAL="$?"
[ "$RETVAL" = 2 ] && return 2
# Wait for children to finish too if this is a daemon that forks
# and if the daemon is only ever run from this initscript.
# If the above conditions are not satisfied then add some other code
# that waits for the process to drop all resources that could be
# needed by services started subsequently. A last resort is to
# sleep for some time.
start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON
[ "$?" = 2 ] && return 2
# Many daemons don't delete their pidfiles when they exit.
rm -f $PIDFILE
return "$RETVAL"
}
case "$1" in
start)
[ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
do_start
case "$?" in
0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
esac
;;
stop)
[ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
do_stop
case "$?" in
0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
esac
;;
status)
status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
;;
restart|force-reload)
log_daemon_msg "Restarting $DESC" "$NAME"
do_stop
case "$?" in
0|1)
do_start
case "$?" in
0) log_end_msg 0 ;;
1) log_end_msg 1 ;; # Old process is still running
*) log_end_msg 1 ;; # Failed to start
esac
;;
*)
# Failed to stop
log_end_msg 1
;;
esac
;;
*)
echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
exit 3
;;
esac
: rdiffweb-v0.7.1/extras/logrotate/ 0000775 0000000 0000000 00000000000 12572375337 0017021 5 ustar 00root root 0000000 0000000 rdiffweb-v0.7.1/extras/logrotate/rdiffweb 0000664 0000000 0000000 00000000402 12572375337 0020530 0 ustar 00root root 0000000 0000000 /var/log/rdiffweb.log {
daily
rotate 3
compress
delaycompress
missingok
notifempty
copytruncate
}
/var/log/rdiffweb-access.log {
daily
rotate 3
compress
delaycompress
missingok
notifempty
copytruncate
} rdiffweb-v0.7.1/package.json 0000664 0000000 0000000 00000001132 12572375337 0015776 0 ustar 00root root 0000000 0000000 {
"name": "patrik-dufresne",
"author": "Patrik Dufresne ",
"homepage": "http://patrikdufresne.com/rdiffweb/",
"repository": {
"type": "git",
"url": "https://github.com/ikus060/rdiffweb.git"
},
"bugs": {
"url": "https://github.com/ikus060/rdiffweb"
},
"engines": {
"node": ">= 0.10.0"
},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-jshint": "~0.10.0",
"grunt-contrib-uglify": "~0.6.0",
"grunt-contrib-less": "~0.11.4",
"grunt-contrib-watch": "~0.6.1"
}
}
rdiffweb-v0.7.1/rdiffweb/ 0000775 0000000 0000000 00000000000 12572375337 0015303 5 ustar 00root root 0000000 0000000 rdiffweb-v0.7.1/rdiffweb/__init__.py 0000664 0000000 0000000 00000000000 12572375337 0017402 0 ustar 00root root 0000000 0000000 rdiffweb-v0.7.1/rdiffweb/db.py 0000775 0000000 0000000 00000003120 12572375337 0016241 0 ustar 00root root 0000000 0000000 #!/usr/bin/python
# -*- coding: utf-8 -*-
# rdiffweb, A web interface to rdiff-backup repositories
# Copyright (C) 2014 rdiffweb contributors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
import rdw_config
class userDB:
def get_userdb_module(self):
# Return a different implementation according to UserDB configuration.
prevDBType = rdw_config.get_config("UserDB")
if prevDBType.lower() == "ldap":
import db_ldap
import db_sqlite
return db_ldap.ldapUserDB(db_sqlite.sqliteUserDB())
elif prevDBType.lower() == "mysql":
import db_mysql
return db_mysql.mysqlUserDB()
elif prevDBType.lower() == "file":
import db_file
return db_file.fileUserDB()
elif prevDBType == "" or prevDBType.lower() == "sqlite":
import db_sqlite
return db_sqlite.sqliteUserDB()
else:
raise ValueError(
"Invalid user database type. Re-configure rdiffweb.")
rdiffweb-v0.7.1/rdiffweb/db_file.py 0000775 0000000 0000000 00000010206 12572375337 0017243 0 ustar 00root root 0000000 0000000 #!/usr/bin/python
# -*- coding: utf-8 -*-
# rdiffweb, A web interface to rdiff-backup repositories
# Copyright (C) 2014 rdiffweb contributors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
import rdw_config
import db
class fileUserDB(db.userDB):
def __init__(self, configFilePath=None):
self.configFilePath = configFilePath
def exists(self, username):
valid_username = rdw_config.get_config(
"username", self.configFilePath)
return valid_username == username
def are_valid_credentials(self, username, password):
"""The valid users string in the config file is in the form:
username=bill
password=frank """
valid_username = rdw_config.get_config(
"username", self.configFilePath)
valid_password = rdw_config.get_config(
"password", self.configFilePath)
return valid_username == username and valid_password == password
def get_root_dir(self, username):
if not self.exists(username):
return None
return rdw_config.get_config("UserRoot", self.configFilePath)
def get_repos(self, username):
"""The user home dirs string in the config file is in the form of username:/data/dir|/data/dir2..."""
if not self.exists(username):
return None
return rdw_config.get_config("UserRepoPaths", self.configFilePath).split("|")
def is_admin(self, username):
return False
# Unit Tests
import unittest
import os
class fileUserDataTest(unittest.TestCase):
"""Unit tests for the fileUserData class"""
validUsersString = """username=test
password=user
UserRoot=/data
UserRepoPaths=/data/bill|/data/frank"""
configFilePath = "/tmp/rdw_config.conf"
def setUp(self):
file = open(self.configFilePath, "w")
file.write(self.validUsersString)
file.close()
def tearDown(self):
if (os.access(self.configFilePath, os.F_OK)):
os.remove(self.configFilePath)
def testValidUser(self):
authModule = fileUserDB(self.configFilePath)
assert(authModule.exists("test"))
assert(authModule.are_valid_credentials("test", "user"))
def testBadPassword(self):
authModule = fileUserDB(self.configFilePath)
# Basic test
assert(not authModule.are_valid_credentials("test", "user2"))
# password is case sensitive
assert(not authModule.are_valid_credentials("test", "User"))
# Match entire password
assert(not authModule.are_valid_credentials("test", "use"))
# Make sure pipe at end doesn't allow blank username/password
assert(not authModule.are_valid_credentials("test", ""))
def testBadUser(self):
authModule = fileUserDB(self.configFilePath)
# username is case sensitive
assert(not authModule.exists("Test"))
# Match entire username
assert(not authModule.exists("tes"))
# Make sure blank username is disallowed
assert(not authModule.exists(""))
def testGoodUserDir(self):
userDataModule = fileUserDB(self.configFilePath)
assert(userDataModule.get_repos("test")
== ["/data/bill", "/data/frank"])
assert(userDataModule.get_root_dir("test") == "/data")
if __name__ == "__main__":
print "Called as standalone program; running unit tests..."
fileUserDataTest = unittest.makeSuite(fileUserDataTest, 'test')
testRunner = unittest.TextTestRunner()
testRunner.run(fileUserDataTest)
rdiffweb-v0.7.1/rdiffweb/db_ldap.py 0000775 0000000 0000000 00000024262 12572375337 0017253 0 ustar 00root root 0000000 0000000 #!/usr/bin/python
# -*- coding: utf-8 -*-
# rdiffweb, A web interface to rdiff-backup repositories
# Copyright (C) 2014 rdiffweb contributors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
from __future__ import unicode_literals
import ldap
import logging
import db
import rdw_config
from rdw_helpers import encode_s
# Define the logger
logger = logging.getLogger(__name__)
class ldapUserDB(db.userDB):
"""Wrapper for LDAP authentication.
This implementation assume the LDAP is using the system encoding."""
def __init__(self, delegate, configFilePath=None):
"""Create a new LDAP Database for authentication. Some behaviour are
delegate to external database."""
self.delegate = delegate
self.configFilePath = configFilePath
# Get LDAP configuration parameters
self.uri = rdw_config.get_config(
"LdapUri", self.configFilePath, None)
if self.uri is None:
raise "LdapUri must be define in configuration"
self.tls = rdw_config.get_config(
"LdapTls", self.configFilePath).lower() == "true"
self.base_dn = rdw_config.get_config(
"LdapBaseDn", self.configFilePath, None)
if self.uri is None:
raise "LdapUri must be define in configuration"
self.attribute = rdw_config.get_config(
"LdapAttribute", self.configFilePath, "uid")
self.scope = rdw_config.get_config(
"LdapScope", self.configFilePath, "subtree")
if self.scope == "base":
self.scope = ldap.SCOPE_BASE
elif self.scope == "onelevel":
self.scope = ldap.SCOPE_ONELEVEL
else:
self.scope = ldap.SCOPE_SUBTREE
self.filter = rdw_config.get_config(
"LdapFilter", self.configFilePath, "(objectClass=*)")
self.bind_dn = rdw_config.get_config(
"LdapBindDn", self.configFilePath, "")
self.bind_password = rdw_config.get_config(
"LdapBindPassword", self.configFilePath, "")
# Get Version
self.version = rdw_config.get_config_int(
"LdapVersion", self.configFilePath, 3)
# Get Network timeout
self.network_timeout = rdw_config.get_config_int(
"LdapNetworkTimeout", self.configFilePath, 100)
# Get Timeout
self.timeout = rdw_config.get_config_int(
"LdapTimeout", self.configFilePath, 300)
# Check if password change are allowed.
self.allow_password_change = rdw_config.get_config_boolean(
"LdapAllowPasswordChange", self.configFilePath)
def are_valid_credentials(self, username, password):
"""Check if the given credential as valid according to LDAP."""
assert isinstance(username, unicode)
assert isinstance(password, unicode)
# Check with local database first.
if self.delegate.are_valid_credentials(username, password):
logger.debug(("valid credentials for [%s]" +
"according to local database") % username)
return True
# Check if exists exists
if not self.delegate.exists(username):
logger.debug("user [%s] doesn't exists in local database" % username)
return False
def check_crendential(l, r):
# Check results
if len(r) != 1:
logger.warn("user [%s] not found in LDAP" % username)
return False
# Bind using the user credentials. Throws an exception in case of
# error.
l.simple_bind_s(r[0][0], encode_s(password))
l.unbind_s()
logger.info("user [%s] found in LDAP" % username)
return True
# Execute the LDAP operation
try:
return self._execute(username, check_crendential)
except:
logger.exception("can't validate credentials")
return False
def add_user(self, username):
# Then add it to internal database.
return self.delegate.add_user(username)
def delete_user(self, username):
# Only delete eser from internal database.
return self.delegate.delete_user(username)
def _execute(self, username, function):
assert isinstance(username, unicode)
"""Reusable method to run LDAP operation."""
# try STARTLS if configured
if self.tls:
ldap.set_option(ldap.OPT_X_TLS_REQUIRE_CERT, ldap.OPT_X_TLS_NEVER)
# Check LDAP credential only.
l = ldap.initialize(self.uri)
# Set v2 or v3
if self.version == 2:
l.protocol_version = ldap.VERSION2
else:
l.protocol_version = ldap.VERSION3
try:
# Bind to the LDAP server
logger.debug("binding to ldap server {}".format(self.uri))
l.simple_bind_s(self.bind_dn, self.bind_password)
# Search the LDAP server
search_filter = "(&{}({}={}))".format(
self.filter, self.attribute, username)
logger.info("search ldap server: {}/{}?{}?{}?{}".format(
self.uri, self.base_dn, self.attribute, self.scope,
search_filter))
r = l.search_s(encode_s(self.base_dn),
self.scope,
encode_s(search_filter))
# Execute operation
return function(l, r)
except ldap.LDAPError as e:
l.unbind_s()
if isinstance(e.message, dict) and 'desc' in e.message:
raise ValueError(e.message['desc'])
else:
raise ValueError(e.message['info'])
def exists(self, username):
return self.delegate.exists(username)
def _exists_in_ldap(self, username):
"""Check if the user exists in LDAP"""
def check_user_exists(l, r):
# Check the results
if len(r) != 1:
logger.warn("user [%s] not found" % username)
return False
logger.info("user [%s] found" % username)
return True
# Execute the LDAP operation
return self._execute(username, check_user_exists)
def get_email(self, username):
assert isinstance(username, unicode)
# Get email from local database.
email = self.delegate.get_email(username)
if email:
return email
# Get from LDAP
logger.debug("get email for user [%s]" % username)
return self._get_email_from_ldap(username)
def _get_email_from_ldap(self, username):
"""Query LDAP server for email."""
def fetch_user_email(l, r):
if len(r) != 1:
logger.warn("user [%s] not found" % username)
return ""
if 'mail' in r[0][1] and len(r[0][1]['mail']) > 0:
return r[0][1]['mail'][0]
return ""
# Execute the LDAP operation
try:
return self._execute(username, fetch_user_email)
except:
logger.exception("can't get user email")
return ""
def get_root_dir(self, username):
return self.delegate.get_root_dir(username)
def get_repos(self, username):
return self.delegate.get_repos(username)
def get_repo_maxage(self, username, repoPath):
return self.delegate.get_repo_maxage(username, repoPath)
def list(self):
return self.delegate.list()
def is_admin(self, username):
return self.delegate.is_admin(username)
def is_ldap(self):
return True
def is_modifiable(self):
return True
def set_email(self, username, userEmail):
return self.delegate.set_email(username, userEmail)
def set_info(self, username, userRoot, isAdmin):
return self.delegate.set_info(username, userRoot, isAdmin)
def set_password(self, username, old_password, password):
"""Update the password of the given user."""
assert isinstance(username, unicode)
assert old_password is None or isinstance(old_password, unicode)
assert isinstance(password, unicode)
# Check if the user is in LDAP.
if self._exists_in_ldap(username):
# Do nothing if password is empty
if not password:
return
# Check if users are allowed to change their password in LDAP.
if not self.allow_password_change:
raise ValueError("""LDAP users are not allowed to change their
password with rdiffweb.""")
# Update the username password of the given user. If possible.
return self._set_password_in_ldap(username, old_password, password)
else:
return self.delegate.set_password(username, old_password, password)
def _set_password_in_ldap(self, username, old_password, password):
def check_user_exists(l, r):
if len(r) != 1:
raise ValueError("user [%s] not found" % username)
# Bind using the user credentials. Throws an exception in case of
# error.
l.simple_bind_s(r[0][0], encode_s(old_password))
l.passwd_s(r[0][0], encode_s(old_password), encode_s(password))
l.unbind_s()
logger.info("password for user [%s] is updated in LDAP" % username)
# Execute the LDAP operation
logger.debug("updating password for [%s] in LDAP" % username)
return self._execute(username, check_user_exists)
def set_repos(self, username, repoPaths):
return self.delegate.set_repos(username, repoPaths)
def set_repo_maxage(self, username, repoPath, maxAge):
return self.delegate.set_repo_maxage(username, repoPath, maxAge)
rdiffweb-v0.7.1/rdiffweb/db_mysql.py 0000775 0000000 0000000 00000027341 12572375337 0017501 0 ustar 00root root 0000000 0000000 #!/usr/bin/python
# -*- coding: utf-8 -*-
# rdiffweb, A web interface to rdiff-backup repositories
# Copyright (C) 2014 rdiffweb contributors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
import db_sql
import rdw_config
import warnings
"""We do no length validation for incoming parameters, since truncated values will
at worst lead to slightly confusing results, but no security risks"""
class mysqlUserDB:
def __init__(self, configFilePath=None):
import MySQLdb
self.configFilePath = configFilePath
MySQLdb.paramstyle = "pyformat"
self.userRootCache = {}
self._connect()
self._updateToLatestFormat()
def is_modifiable(self):
return True
def exists(self, username):
results = self._executeQuery(
"SELECT Username FROM users WHERE Username = %(user)s", user=username)
return len(results) == 1
def are_valid_credentials(self, username, password):
results = self._executeQuery(
"SELECT Username FROM users WHERE Username = %(user)s AND Password = %(password)s", user=username, password=self._hashPassword(password))
return len(results) == 1
def get_root_dir(self, username):
if username not in self.userRootCache:
self.userRootCache[username] = self._getUserField(
username, "UserRoot")
return self.userRootCache[username]
def get_repos(self, username):
if not self.exists(username):
return None
query = "SELECT RepoPath FROM repos WHERE UserID = %d" % self._getUserID(
username)
repos = [row[0] for row in self._executeQuery(query)]
repos.sort(lambda x, y: cmp(x.upper(), y.upper()))
return repos
def get_email(self, username):
if not self.exists(username):
return None
return self._getUserField(username, "userEmail")
def list(self):
query = "SELECT UserName FROM users"
users = [x[0] for x in self._executeQuery(query)]
return users
def add_user(self, username):
if self.exists(username):
raise ValueError
query = "INSERT INTO users (Username) values (%(user)s)"
self._executeQuery(query, user=username)
def delete_user(self, username):
if not self.exists(username):
raise ValueError
self._delete_userRepos(username)
query = "DELETE FROM users WHERE Username = %(user)s"
self._executeQuery(query, user=username)
def set_info(self, username, userRoot, isAdmin):
if not self.exists(username):
raise ValueError
if isAdmin:
adminInt = 1
else:
adminInt = 0
query = "UPDATE users SET UserRoot=%(userRoot)s, IsAdmin=" + str(
adminInt) + " WHERE Username = %(user)s"
self._executeQuery(query, userRoot=userRoot, user=username)
self.userRootCache[username] = userRoot # update cache
def set_email(self, username, userEmail):
if not self.exists(username):
raise ValueError
self._setUserField(username, 'UserEmail', userEmail)
def set_repos(self, username, repoPaths):
if not self.exists(username):
raise ValueError
userID = self._getUserID(username)
# We don't want to just delete and recreate the repos, since that
# would lose notification information.
existingRepos = self.get_repos(username)
reposToDelete = filter(lambda x: x not in repoPaths, existingRepos)
reposToAdd = filter(lambda x: x not in existingRepos, repoPaths)
# delete any obsolete repos
for repo in reposToDelete:
query = "DELETE FROM repos WHERE UserID=%(userID)s AND RepoPath= BINARY %(repo)s"
self._executeQuery(query, repo=repo, userID=str(userID))
# add in new repos
query = "INSERT INTO repos (UserID, RepoPath) values (%s, %s)"
repoPaths = [(str(userID), repo) for repo in reposToAdd]
cursor = self.sqlConnection.cursor()
cursor.executemany(query, repoPaths)
def set_password(self, username, old_password, password):
if not password:
raise ValueError("password can't be empty")
if not self.exists(username):
raise ValueError
if old_password and not self.are_valid_credentials(username, old_password):
raise ValueError("wrong password")
self._setUserField(username, 'Password', self._hashPassword(password))
def set_repo_maxage(self, username, repoPath, maxAge):
if repoPath not in self.get_repos(username):
raise ValueError
query = "UPDATE repos SET MaxAge=%(maxAge)s WHERE RepoPath = BINARY %(repoPath)s AND UserID = " + str(
self._getUserID(username))
self._executeQuery(query, maxAge=maxAge, repoPath=repoPath)
def get_repo_maxage(self, username, repoPath):
query = "SELECT MaxAge FROM repos WHERE RepoPath = BINARY %(repoPath)s AND UserID = " + str(
self._getUserID(username))
results = self._executeQuery(query, repoPath=repoPath)
assert len(results) == 1
return int(results[0][0])
def is_admin(self, username):
return bool(self._getUserField(username, "IsAdmin"))
def is_ldap(self):
return False
# Helper functions #
def _delete_userRepos(self, username):
if not self.exists(username):
raise ValueError
self._executeQuery("DELETE FROM repos WHERE UserID=%d" %
self._getUserID(username))
def _getUserID(self, username):
assert self.exists(username)
return self._getUserField(username, 'UserID')
def _getUserField(self, username, fieldName):
if not self.exists(username):
return None
query = "SELECT " + fieldName + " FROM users WHERE Username = %(user)s"
results = self._executeQuery(query, user=username)
assert len(results) == 1
return results[0][0]
def _setUserField(self, username, fieldName, value):
if not self.exists(username):
raise ValueError
if isinstance(value, bool):
if value:
valueStr = '1'
else:
valueStr = '0'
else:
valueStr = str(value)
query = 'UPDATE users SET ' + fieldName + \
'=%(value)s WHERE Username=%(user)s'
self._executeQuery(query, value=valueStr, user=username)
def _internalExecuteQuery(self, query, **kwargs):
cursor = self.sqlConnection.cursor()
cursor.execute(query, kwargs)
return cursor.fetchall()
def _executeQuery(self, query, **kwargs):
# The mysql server connection times out after a while. Catch this, and
# try again
import MySQLdb
try:
return self._internalExecuteQuery(query, **kwargs)
except MySQLdb.OperationalError:
self._connect()
return self._internalExecuteQuery(query, **kwargs)
def _connect(self):
import MySQLdb
sqlHost = rdw_config.get_config("MySQLHost", self.configFilePath)
sqlUsername = rdw_config.get_config(
"MySQLUsername", self.configFilePath)
sqlPassword = rdw_config.get_config(
"MySQLPassword", self.configFilePath)
sqlDatabaseName = rdw_config.get_config(
"MySQLDatabase", self.configFilePath)
self.sqlConnection = MySQLdb.connect(
host=sqlHost, user=sqlUsername, passwd=sqlPassword, db=sqlDatabaseName)
def _hashPassword(self, password):
import sha
hasher = sha.new()
hasher.update(password)
return hasher.hexdigest()
def _getCreateStatements(self):
return [
"""create table users (
UserID int(11) NOT NULL auto_increment,
Username varchar (50) binary unique NOT NULL,
Password varchar (40) NOT NULL DEFAULT "",
UserRoot varchar (255) NOT NULL DEFAULT "",
IsAdmin tinyint NOT NULL DEFAULT FALSE,
UserEmail varchar (255) NOT NULL DEFAULT "",
RestoreFormat tinyint NOT NULL DEFAULT TRUE,
primary key (UserID) )""",
"""create table repos (
RepoID int(11) NOT NULL auto_increment,
UserID int(11) NOT NULL,
RepoPath varchar (255) NOT NULL,
MaxAge tinyint NOT NULL DEFAULT 0,
primary key (RepoID))"""
]
def _updateToLatestFormat(self):
# Make sure that we have tables. If we don't, just quit.
tableNames = [table[0].lower()
for table in self._executeQuery("show tables")]
if not tableNames:
return
# Make sure that the users table has a "email" column
columnNames = [column[0].lower()
for column in self._executeQuery("describe users")]
if "useremail" not in columnNames:
self._executeQuery(
'alter table users add column UserEmail varchar (255) NOT NULL DEFAULT ""')
# Make sure that the repos table has a "MaxAge" column
columnNames = [column[0].lower()
for column in self._executeQuery("describe repos")]
if "maxage" not in columnNames:
self._executeQuery(
'alter table repos add column MaxAge tinyint NOT NULL DEFAULT 0')
# Make sure that the users table has a "restoreFormat" column
columnNames = [column[0].lower()
for column in self._executeQuery("describe users")]
if "restoreformat" not in columnNames:
self._executeQuery(
'alter table users add column RestoreFormat tinyint NOT NULL DEFAULT TRUE')
def _getTables(self):
return [table[0].lower() for table in self._executeQuery("show tables")]
# Unit Tests #
import unittest
import os
class mysqlUserDBTest(db_sql.sqlUserDBTest):
"""Unit tests for the mysqlUserDBTest class"""
configFileData = """sqlHost=localhost
sqlUsername=
sqlPassword=
sqlDatabase=test"""
configFilePath = "/tmp/rdw_config.conf"
def _getUserDBObject(self):
return mysqlUserDB(self.configFilePath)
def setUp(self):
file = open(self.configFilePath, "w")
file.write(self.configFileData)
file.close()
self.tearDown()
file = open(self.configFilePath, "w")
file.write(self.configFileData)
file.close()
def tearDown(self):
userData = mysqlUserDB(self.configFilePath)
tableNames = [table[0].lower()
for table in userData._executeQuery("show tables")]
if 'users' in tableNames:
userData._executeQuery("DROP TABLE IF EXISTS users;")
if 'repos' in tableNames:
userData._executeQuery("DROP TABLE IF EXISTS repos;")
if (os.access(self.configFilePath, os.F_OK)):
os.remove(self.configFilePath)
def testUserTruncation(self):
warnings.filterwarnings('ignore', message='Data truncated')
import MySQLdb
authModule = self._getUserDB()
authModule.add_user("bill" * 1000)
try:
authModule.add_user("bill" * 1000 + "test")
except MySQLdb.IntegrityError:
pass
else:
assert(false)
warnings.resetwarnings()
rdiffweb-v0.7.1/rdiffweb/db_sql.py 0000664 0000000 0000000 00000010515 12572375337 0017123 0 ustar 00root root 0000000 0000000 #!/usr/bin/python
# -*- coding: utf-8 -*-
# rdiffweb, A web interface to rdiff-backup repositories
# Copyright (C) 2014 rdiffweb contributors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
# Unit Tests #
import unittest
class sqlUserDBTest(unittest.TestCase):
"""Generic unit tests for sql backends"""
def _getUserDB(self):
userData = self._getUserDBObject()
if not userData._getTables():
for statement in userData._getCreateStatements():
userData._executeQuery(statement)
userData.add_user("test")
userData.set_info("test", "/data", False)
userData.set_password("test", None, "user")
userData.set_repos("test", ["/data/bill", "/data/frank"])
return userData
def tearDown(self):
userData = self._getUserDB()
tableNames = userData._getTables()
print tableNames
if 'users' in tableNames:
userData._executeQuery("DROP TABLE users")
if 'repos' in tableNames:
userData._executeQuery("DROP TABLE repos")
def testValidUser(self):
authModule = self._getUserDB()
assert(authModule.exists("test"))
assert(authModule.are_valid_credentials("test", "user"))
def testUserTruncation(self):
raise NotImplementedError
def testUserList(self):
authModule = self._getUserDB()
assert(authModule.list() == ["test"])
def testdelete_user(self):
authModule = self._getUserDB()
assert(authModule.list() == ["test"])
authModule.delete_user("test")
assert(authModule.list() == [])
def testUserInfo(self):
authModule = self._getUserDB()
assert(authModule.get_root_dir("test") == "/data")
assert(not authModule.is_admin("test"))
def testBadPassword(self):
authModule = self._getUserDB()
# Basic test
assert(not authModule.are_valid_credentials("test", "user2"))
# password is case sensitive
assert(not authModule.are_valid_credentials("test", "User"))
# Match entire password
assert(not authModule.are_valid_credentials("test", "use"))
# Match entire password
assert(not authModule.are_valid_credentials("test", ""))
def testBadUser(self):
authModule = self._getUserDB()
assert(not authModule.exists("Test")) # username is case sensitive
assert(not authModule.exists("tes")) # Match entire username
def testGoodUserDir(self):
userDataModule = self._getUserDB()
assert(userDataModule.get_repos("test")
== ["/data/bill", "/data/frank"])
assert(userDataModule.get_root_dir("test") == "/data")
def testBadUserReturn(self):
userDataModule = self._getUserDB()
# should return None if user doesn't exist
assert(not userDataModule.get_repos("test2"))
# should return None if user doesn't exist
assert(not userDataModule.get_root_dir(""))
def testUserRepos(self):
userDataModule = self._getUserDB()
userDataModule.set_repos("test", [])
userDataModule.set_repos("test", ["a", "b", "c"])
self.assertEquals(
userDataModule.get_repos("test"), ["a", "b", "c"])
# Make sure that repo max ages are initialized to 0
maxAges = [userDataModule.get_repo_maxage("test", x)
for x in userDataModule.get_repos("test")]
self.assertEquals(maxAges, [0, 0, 0])
userDataModule.set_repo_maxage("test", "b", 1)
self.assertEquals(userDataModule.get_repo_maxage("test", "b"), 1)
userDataModule.set_repos("test", ["b", "c", "d"])
self.assertEquals(userDataModule.get_repo_maxage("test", "b"), 1)
self.assertEquals(
userDataModule.get_repos("test"), ["b", "c", "d"])
rdiffweb-v0.7.1/rdiffweb/db_sqlite.py 0000775 0000000 0000000 00000030545 12572375337 0017635 0 ustar 00root root 0000000 0000000 #!/usr/bin/python
# -*- coding: utf-8 -*-
# rdiffweb, A web interface to rdiff-backup repositories
# Copyright (C) 2014 rdiffweb contributors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
from __future__ import unicode_literals
import rdw_config
import db_sql
from rdw_helpers import encode_s, decode_s
"""We do no length validation for incoming parameters, since truncated values
will at worst lead to slightly confusing results, but no security risks"""
class sqliteUserDB:
def __init__(self, configFilePath=None, autoConvertDatabase=True):
self.configFilePath = configFilePath
# Get database location.
self._databaseFilePath = rdw_config.get_config(
"SqliteDBFile", self.configFilePath)
# If the database path is not define default to /etc/rdiffweb/rdw.db
if self._databaseFilePath == "":
self._databaseFilePath = "/etc/rdiffweb/rdw.db"
self._autoConvertDatabase = autoConvertDatabase
self.userRootCache = {}
self._connect()
self._migrateExistingData()
def is_modifiable(self):
return True
def exists(self, username):
assert isinstance(username, unicode)
results = self._executeQuery(
"SELECT Username FROM users WHERE Username = ?", (username,))
return len(results) == 1
def are_valid_credentials(self, username, password):
assert isinstance(username, unicode)
assert isinstance(password, unicode)
results = self._executeQuery(
"SELECT Username FROM users WHERE Username = ? AND Password = ?",
(username, self._hashPassword(password)))
return len(results) == 1
def get_root_dir(self, username):
assert isinstance(username, unicode)
if username not in self.userRootCache:
self.userRootCache[username] = self._encodePath(
self._getUserField(username, "UserRoot"))
return self.userRootCache[username]
def get_repos(self, username):
assert isinstance(username, unicode)
if not self.exists(username):
return None
query = ("SELECT RepoPath FROM repos WHERE UserID = %d" %
self._getUserID(username))
repos = [self._encodePath(row[0]) for row in self._executeQuery(query)]
repos.sort(lambda x, y: cmp(x.upper(), y.upper()))
return repos
def get_email(self, username):
assert isinstance(username, unicode)
if not self.exists(username):
return None
return self._getUserField(username, "userEmail")
def list(self):
query = "SELECT UserName FROM users"
users = [x[0] for x in self._executeQuery(query)]
return users
def add_user(self, username):
assert isinstance(username, unicode)
if self.exists(username):
raise ValueError("user '%s' already exists" % username)
query = "INSERT INTO users (Username) values (?)"
self._executeQuery(query, (username,))
def delete_user(self, username):
assert isinstance(username, unicode)
if not self.exists(username):
raise ValueError
self._delete_userRepos(username)
query = "DELETE FROM users WHERE Username = ?"
self._executeQuery(query, (username,))
def set_info(self, username, userRoot, isAdmin):
assert isinstance(username, unicode)
if not self.exists(username):
raise ValueError
# Remove the user from the cache before
# updating the database.
self.userRootCache.pop(username, None)
if isAdmin:
adminInt = 1
else:
adminInt = 0
query = "UPDATE users SET UserRoot=?, IsAdmin=" + \
str(adminInt) + " WHERE Username = ?"
self._executeQuery(query, (userRoot, username))
def set_email(self, username, email):
assert isinstance(username, unicode)
assert isinstance(email, unicode)
if not self.exists(username):
raise ValueError
self._setUserField(username, 'UserEmail', email)
def set_repos(self, username, repoPaths):
assert isinstance(username, unicode)
if not self.exists(username):
raise ValueError
userID = self._getUserID(username)
# We don't want to just delete and recreate the repos, since that
# would lose notification information.
existingRepos = self.get_repos(username)
reposToDelete = filter(lambda x: x not in repoPaths, existingRepos)
reposToAdd = filter(lambda x: x not in existingRepos, repoPaths)
# delete any obsolete repos
for repo in reposToDelete:
query = "DELETE FROM repos WHERE UserID=? AND RepoPath=?"
self._executeQuery(query, (str(userID), repo))
# add in new repos
query = "INSERT INTO repos (UserID, RepoPath) values (?, ?)"
repoPaths = [[str(userID), repo] for repo in reposToAdd]
cursor = self.sqlConnection.cursor()
cursor.executemany(query, repoPaths)
def set_password(self, username, old_password, password):
assert isinstance(username, unicode)
assert old_password is None or isinstance(old_password, unicode)
assert isinstance(password, unicode)
if not self.exists(username):
raise ValueError("invalid username")
if not password:
raise ValueError("password can't be empty")
if old_password and not self.are_valid_credentials(username, old_password):
raise ValueError("wrong password")
self._setUserField(username, 'Password', self._hashPassword(password))
def set_repo_maxage(self, username, repoPath, maxAge):
assert isinstance(username, unicode)
if repoPath not in self.get_repos(username):
raise ValueError
query = "UPDATE repos SET MaxAge=? WHERE RepoPath=? AND UserID = " + \
str(self._getUserID(username))
self._executeQuery(query, (maxAge, repoPath))
def get_repo_maxage(self, username, repoPath):
assert isinstance(username, unicode)
query = "SELECT MaxAge FROM repos WHERE RepoPath=? AND UserID = " + \
str(self._getUserID(username))
results = self._executeQuery(query, (repoPath,))
assert len(results) == 1
return int(results[0][0])
def is_admin(self, username):
assert isinstance(username, unicode)
return bool(self._getUserField(username, "IsAdmin"))
def is_ldap(self):
return False
# Helper functions #
def _encodePath(self, path):
if isinstance(path, str):
# convert to unicode...
return path.decode('utf-8')
return path
def _delete_userRepos(self, username):
if not self.exists(username):
raise ValueError
self._executeQuery("DELETE FROM repos WHERE UserID=%d" %
self._getUserID(username))
def _getUserID(self, username):
assert self.exists(username)
return self._getUserField(username, 'UserID')
def _getUserField(self, username, fieldName):
if not self.exists(username):
return None
query = "SELECT " + fieldName + " FROM users WHERE Username = ?"
results = self._executeQuery(query, (username,))
assert len(results) == 1
return results[0][0]
def _setUserField(self, username, fieldName, value):
assert isinstance(username, unicode)
assert isinstance(fieldName, unicode)
assert not isinstance(value, str)
if not self.exists(username):
raise ValueError
if isinstance(value, bool):
if value:
value = '1'
else:
value = '0'
query = 'UPDATE users SET ' + fieldName + '=? WHERE Username=?'
self._executeQuery(query, (value, username))
def _hashPassword(self, password):
# At this point the password should be unicode. We converted it into
# system encoding.
password_b = encode_s(password)
import sha
hasher = sha.new()
hasher.update(password_b)
return decode_s(hasher.hexdigest())
def _executeQuery(self, query, args=()):
assert isinstance(query, unicode)
cursor = self.sqlConnection.cursor()
cursor.execute(query, args)
results = cursor.fetchall()
return results
def _connect(self):
try:
import sqlite3
except ImportError:
from pysqlite2 import dbapi2 as sqlite3
connectPath = self._databaseFilePath
if not connectPath:
connectPath = ":memory:"
self.sqlConnection = sqlite3.connect(connectPath)
self.sqlConnection.isolation_level = None
def _getTables(self):
return [column[0] for column in
self._executeQuery('select name from sqlite_master where type="table"')]
def _getCreateStatements(self):
return [
"""create table users (
UserID integer primary key autoincrement,
Username varchar (50) unique NOT NULL,
Password varchar (40) NOT NULL DEFAULT "",
UserRoot varchar (255) NOT NULL DEFAULT "",
IsAdmin tinyint NOT NULL DEFAULT FALSE,
UserEmail varchar (255) NOT NULL DEFAULT "",
RestoreFormat tinyint NOT NULL DEFAULT TRUE)""",
"""create table repos (
RepoID integer primary key autoincrement,
UserID int(11) NOT NULL,
RepoPath varchar (255) NOT NULL,
MaxAge tinyint NOT NULL DEFAULT 0)"""
]
def _migrateExistingData(self):
""" If we don't have any data, we may be using a sqlite interface for
the first time. See if they have another database backend specified,
and if they do, try to migrate the data."""
if self._getTables():
return
cursor = self.sqlConnection.cursor()
cursor.execute("BEGIN TRANSACTION")
for statement in self._getCreateStatements():
cursor.execute(statement)
if self._autoConvertDatabase:
prevDBType = rdw_config.get_config(
"UserDB", self.configFilePath)
if prevDBType.lower() == "mysql":
print 'Converting database from mysql...'
import db_mysql
prevDB = db_mysql.mysqlUserDB(self.configFilePath)
users = prevDB._executeQuery(
"SELECT UserID, Username, Password, UserRoot, IsAdmin, UserEmail, RestoreFormat FROM users")
cursor.executemany(
"INSERT INTO users (UserID, Username, Password, UserRoot, IsAdmin, UserEmail, RestoreFormat) values (?, ?, ?, ?, ?, ?, ?)", users)
repos = prevDB._executeQuery(
"SELECT UserID, RepoPath, MaxAge FROM repos")
cursor.executemany(
"INSERT INTO repos (UserID, RepoPath, MaxAge) values (?, ?, ?)", repos)
elif prevDBType.lower() == "file":
print 'Converting database from file...'
import db_file
prevDB = db_file.fileUserDB(self.configFilePath)
username = rdw_config.get_config(
"username", self.configFilePath)
password = rdw_config.get_config(
"password", self.configFilePath)
self.add_user(username)
self.set_password(username, None, password)
self.set_info(username, prevDB.get_root_dir(username), True)
self.set_repos(username, prevDB.get_repos(username))
cursor.execute("COMMIT TRANSACTION")
class sqliteUserDBTest(db_sql.sqlUserDBTest):
"""Unit tests for the sqliteUserDBTeste class"""
def _getUserDBObject(self):
return sqliteUserDB(":memory:", autoConvertDatabase=False)
def setUp(self):
super(sqliteUserDBTest, self).setUp()
def tearDown(self):
pass
def testUserTruncation(self):
pass
rdiffweb-v0.7.1/rdiffweb/email_notification.py 0000664 0000000 0000000 00000010612 12572375337 0021512 0 ustar 00root root 0000000 0000000 #!/usr/bin/python
# -*- coding: utf-8 -*-
# rdiffweb, A web interface to rdiff-backup repositories
# Copyright (C) 2014 rdiffweb contributors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
import smtplib
import rdw_config
import db
import librdiff
import rdw_helpers
import rdw_templating
import datetime
import threading
import time
def startEmailNotificationThread(killEvent):
newThread = emailNotifyThread(killEvent)
newThread.start()
class emailNotifyThread(threading.Thread):
def __init__(self, killEvent):
self.killEvent = killEvent
threading.Thread.__init__(self)
def run(self):
self.notifier = emailNotifier()
if not self.notifier.notificationsEnabled():
return
emailTimeStr = rdw_config.get_config("emailNotificationTime")
while True:
emailTime = time.strptime(emailTimeStr, "%H:%M")
now = datetime.datetime.now()
nextEmailTime = now.replace(
hour=emailTime.tm_hour, minute=emailTime.tm_min, second=0, microsecond=0)
if nextEmailTime < now:
nextEmailTime = nextEmailTime.replace(
day=nextEmailTime.day + 1)
delta = (nextEmailTime - now).seconds
self.killEvent.wait(delta)
if self.killEvent.isSet():
return
self.notifier.sendEmails()
class emailNotifier:
def __init__(self):
self.userDB = db.userDB().get_userdb_module()
def notificationsEnabled(self):
return self._getEmailHost() != "" and\
self._getEmailSender() != "" and\
self._getNotificationTimeStr() != "" and\
self.userDB.is_modifiable()
def sendEmails(self):
for user in self.userDB.list():
userRepos = self.userDB.get_repos(user)
oldRepos = []
for repo in userRepos:
maxDaysOld = self.userDB.get_repo_maxage(user, repo)
if maxDaysOld != 0:
# get the last backup date
try:
lastBackup = librdiff.getLastBackupHistoryEntry(
os.path.join(self.userDB.get_root_dir(user), repo), False)
except librdiff.FileError:
pass # Skip repos that have never been successfully backed up
else:
if lastBackup:
oldestGoodBackupTime = rdw_helpers.rdwTime()
oldestGoodBackupTime.initFromMidnightUTC(
-maxDaysOld)
if lastBackup.date < oldestGoodBackupTime:
oldRepos.append(
{"repo": repo, "lastBackupDate": lastBackup.date.getDisplayString(), "maxAge": maxDaysOld})
if oldRepos:
userEmailAddress = self.userDB.get_email(user)
emailText = rdw_templating.compile_template(
"email_notification.txt", repos=oldRepos, sender=self._getEmailSender(), user=user)
session = smtplib.SMTP(self._getEmailHost())
session.login(
self._getEmailUsername(), self._getEmailPassword())
smtpresult = session.sendmail(
self._getEmailSender(), userEmailAddress.split(";"), emailText)
session.quit()
def _getEmailHost(self):
return rdw_config.get_config("emailHost")
def _getEmailSender(self):
return rdw_config.get_config("emailSender")
def _getEmailUsername(self):
return rdw_config.get_config("emailUsername")
def _getEmailPassword(self):
return rdw_config.get_config("emailPassword")
def _getNotificationTimeStr(self):
return rdw_config.get_config("emailNotificationTime")
rdiffweb-v0.7.1/rdiffweb/filter_authentication.py 0000664 0000000 0000000 00000005710 12572375337 0022244 0 ustar 00root root 0000000 0000000 #!/usr/bin/python
# -*- coding: utf-8 -*-
# rdiffweb, A web interface to rdiff-backup repositories
# Copyright (C) 2014 rdiffweb contributors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
from __future__ import unicode_literals
import binascii
import cherrypy
import logging
from cherrypy._cpcompat import base64_decode
from rdw_helpers import quote_url
# Define the logger
logger = logging.getLogger(__name__)
def authform():
"""Filter used to redirect user to login page if not logged in."""
# Check if logged-in.
if cherrypy.session.get("username"): # @UndefinedVariable
# page passes credentials; allow to be processed
return False
# Sending the redirect URL as bytes
redirect = cherrypy.request.path_info
if cherrypy.request.query_string:
redirect += b"?"
redirect += cherrypy.request.query_string
redirect = "?redirect=" + quote_url(redirect)
# write login page
logger.info("user not logged in, redirect to /login/")
raise cherrypy.HTTPRedirect("/login/" + redirect)
cherrypy.tools.authform = cherrypy._cptools.HandlerTool(authform)
def authbasic(checkpassword, authmethod=""):
"""Filter used to restrict access to resource via HTTP basic auth."""
# Check if logged-in.
if cherrypy.session.get("username"): # @UndefinedVariable
# page passes credentials; allow to be processed
return False
# Proceed with basic authentication.
request = cherrypy.serving.request
auth_header = request.headers.get('authorization')
if auth_header is not None:
try:
scheme, params = auth_header.split(' ', 1)
if scheme.lower() == 'basic':
username, password = base64_decode(params).split(':', 1)
if checkpassword(username, password):
logger.debug('Auth succeeded')
request.login = username
return # successful authentication
# split() error, base64.decodestring() error
except (ValueError, binascii.Error):
raise cherrypy.HTTPError(400, 'Bad Request')
# Respond with 401 status and a WWW-Authenticate header
cherrypy.serving.response.headers['www-authenticate'] = 'Basic realm="rdiffweb"'
raise cherrypy.HTTPError(401, "You are not authorized to access that resource")
cherrypy.tools.authbasic = cherrypy._cptools.HandlerTool(authbasic)
rdiffweb-v0.7.1/rdiffweb/filter_https.py 0000664 0000000 0000000 00000002407 12572375337 0020367 0 ustar 00root root 0000000 0000000 #!/usr/bin/python
# -*- coding: utf-8 -*-
# rdiffweb, A web interface to rdiff-backup repositories
# Copyright (C) 2014 rdiffweb contributors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
import cherrypy
try:
from cherrypy.filters.basefilter import BaseFilter # @UnresolvedImport
except:
from cherrypy.lib.filter.basefilter import BaseFilter # @UnresolvedImport
class rdwHttpsFilter(BaseFilter):
def onStartResource(self):
cherrypy.request.scheme = 'https'
def beforeRequestBody(self):
if cherrypy.request.browserUrl.startswith("http://"):
cherrypy.request.browserUrl = cherrypy.request.browserUrl.replace(
"http://", "https://")
rdiffweb-v0.7.1/rdiffweb/filter_setup.py 0000664 0000000 0000000 00000002517 12572375337 0020367 0 ustar 00root root 0000000 0000000 #!/usr/bin/python
# -*- coding: utf-8 -*-
# rdiffWeb, A web interface to rdiff-backup repositories
# Copyright (C) 2014 rdiffWeb contributors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
import cherrypy
import logging
import db
# Define the logger
logger = logging.getLogger(__name__)
def handle_setup():
"""This filter tool redirect users to /setup/ if no users."""
# Get the user database.
try:
userdb = db.userDB().get_userdb_module()
except:
logger.warn("user database is not configured")
userdb = False
if not userdb or len(userdb.list()) == 0:
logger.info("redirect user to setup page")
raise cherrypy.HTTPRedirect("/setup/")
cherrypy.tools.setup = cherrypy.Tool('before_handler', handle_setup)
rdiffweb-v0.7.1/rdiffweb/i18n.py 0000664 0000000 0000000 00000016526 12572375337 0016446 0 ustar 00root root 0000000 0000000 #!/usr/bin/python
# -*- coding: utf-8 -*-
# rdiffweb, A web interface to rdiff-backup repositories
# Copyright (C) 2014 rdiffweb contributors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
"""Internationalization and Localization for CherryPy
**Tested with CherryPy 3.1.2**
This tool provides locales and loads translations based on the
HTTP-ACCEPT-LANGUAGE header. If no header is send or the given language
is not supported by the application, it falls back to
`tools.I18nTool.default`. Set `default` to the native language used in your
code for strings, so you must not provide a .mo file for it.
The tool uses gettext for localization and handling translations. Within your
Python code you can use four functions defined in this module and the loaded
locale provided as `cherrypy.response.i18n.locale`.
Example::
from i18n import ugettext as _, ungettext
class MyController(object):
@cherrypy.expose
def index(self):
loc = cherrypy.response.i18n.locale
s1 = _(u'Translateable string')
s2 = ungettext(u'There is one string.',
u'There are more strings.', 2)
return u'
'.join([s1, s2, loc.display_name])
Settings for the CherryPy configuration::
[/]
tools.i18n.on = True
tools.i18n.default = Your language with territory (e.g. 'en_US')
tools.i18n.mo_dir = Directory holding the locale directories
tools.i18n.domain = Your gettext domain (e.g. application name)
The mo_dir must contain subdirectories named with the language prefix
for all translations, containing a LC_MESSAGES dir with the compiled
catalog file in it.
Example::
[/]
tools.i18n.on = True
tools.i18n.default = 'en_US'
tools.i18n.mo_dir = '/home/user/web/myapp/i18n'
tools.i18n.domain = 'myapp'
Now the tool will look for a file called myapp.mo in
/home/user/web/myapp/i18n/en/LC_MESSACES/
or generic: //LC_MESSAGES/.mo
That's it.
:License: BSD
:Author: Thorsten Weimann
:Date: 2010-02-08
"""
import cherrypy
import gettext
import logging
from collections import namedtuple
Lang = namedtuple('Lang', 'locale trans')
# Cache for Translations and Locale objects
_languages = {}
# Define the logger
logger = logging.getLogger(__name__)
# Exception
class ImproperlyConfigured(Exception):
"""Raised if no known locale were found."""
# Public translation functions
def ugettext(message):
"""Standard translation function. You can use it in all your exposed
methods and everywhere where the response object is available.
:parameters:
message : Unicode
The message to translate.
:returns: The translated message.
:rtype: Unicode
"""
return cherrypy.response.i18n.trans.ugettext(message)
def ungettext(singular, plural, num):
"""Like ugettext, but considers plural forms.
:parameters:
singular : Unicode
The message to translate in singular form.
plural : Unicode
The message to translate in plural form.
num : Integer
Number to apply the plural formula on. If num is 1 or no
translation is found, singular is returned.
:returns: The translated message as singular or plural.
:rtype: Unicode
"""
return cherrypy.response.i18n.trans.ungettext(singular, plural, num)
def load_translation(langs, dirname, domain):
"""Loads the first existing translations for known locale and saves the
`Lang` object in a global cache for faster lookup on the next request.
:parameters:
langs : List
List of languages as returned by `parse_accept_language_header`.
dirname : String
Directory of the translations (`tools.I18nTool.mo_dir`).
domain : String
Gettext domain of the catalog (`tools.I18nTool.domain`).
:returns: Lang object with two attributes (Lang.trans = the translations
object, Lang.locale = the corresponding Locale object).
:rtype: Lang
:raises: ImproperlyConfigured if no locale where known.
"""
locale = None
for lang in langs:
short = lang[:2].lower()
try:
locale = lang
if (domain, short) in _languages:
return _languages[(domain, short)]
trans = gettext.translation(domain,
dirname,
languages=[locale],
fallback=True)
except (ValueError, IOError):
logger.debug("error loading translation")
continue
# If the translation was found, exit loop
if isinstance(trans, gettext.GNUTranslations):
break
if locale is None:
raise ImproperlyConfigured('Default locale not known.')
_languages[(domain, short)] = res = Lang(locale, trans)
return res
def get_lang(mo_dir, default, domain):
"""Main function which will be invoked during the request by `I18nTool`.
If the SessionTool is on and has a lang key, this language get the
highest priority. Default language get the lowest priority.
The `Lang` object will be saved as `cherrypy.response.i18n` and the
language string will also saved as `cherrypy.session['_lang_']` (if
SessionTool is on).
:parameters:
mo_dir : String
`tools.i18n.mo_dir`
default : String
`tools.i18n.default`
domain : String
`tools.i18n.domain`
"""
langs = [x.value.replace('-', '_') for x in
cherrypy.request.headers.elements('Accept-Language')]
langs.append(default)
logger.debug("accept-language: %s " % (langs))
loc = load_translation(langs, mo_dir, domain)
cherrypy.response.i18n = loc
logger.debug("use-language: %s " % str(loc.locale))
def set_lang():
"""Sets the Content-Language response header (if not already set) to the
language of `cherrypy.response.i18n.locale`.
"""
if ('Content-Language' not in cherrypy.response.headers and
hasattr(cherrypy.response, 'i18n')):
cherrypy.response.headers['Content-Language'] = str(
cherrypy.response.i18n.locale)
class I18nTool(cherrypy.Tool):
"""Tool to integrate gettext translations in CherryPy."""
def __init__(self):
self._name = 'i18n'
self._point = 'before_handler'
self.callable = get_lang
# Make sure, session tool (priority 50) is loaded before
self._priority = 100
def _setup(self):
c = cherrypy.request.config
if c.get('tools.staticdir.on', False) or \
c.get('tools.staticfile.on', False):
return
cherrypy.Tool._setup(self)
cherrypy.request.hooks.attach('before_finalize', set_lang)
cherrypy.tools.i18n = I18nTool()
rdiffweb-v0.7.1/rdiffweb/librdiff.py 0000775 0000000 0000000 00000103130 12572375337 0017437 0 ustar 00root root 0000000 0000000 #!/usr/bin/python
# -*- coding: utf-8 -*-
# rdiffweb, A web interface to rdiff-backup repositories
# Copyright (C) 2014 rdiffweb contributors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
from __future__ import unicode_literals
import bisect
import gzip
import logging
import os
import re
import subprocess
import tempfile
import rdw_helpers
import rdw_config
from i18n import ugettext as _
# Define the logger
logger = logging.getLogger(__name__)
# Constant for the rdiff-backup-data folder name.
RDIFF_BACKUP_DATA = b"rdiff-backup-data"
# Constant for the increments folder name.
INCREMENTS = os.path.join(RDIFF_BACKUP_DATA, b"increments")
# Zip file extension
ZIP_SUFFIX = b".zip"
# Tar gz extension
TARGZ_SUFFIX = b".tar.gz"
class FileError:
def __str__(self):
return rdw_helpers.encode_s(unicode(self))
def __unicode__(self):
return _("An unknown error occurred.")
class AccessDeniedError(FileError):
def __unicode__(self):
return _("Access denied.")
class DoesNotExistError(FileError):
def __unicode__(self):
return _("The repository does not exist.")
class UnknownError(FileError):
def __init__(self, error=None):
if not error:
error = _("An unknown error occurred.")
assert isinstance(error, unicode)
self.error = error
def __unicode__(self):
return self.error
# Interfaced objects #
class DirEntry:
"""Includes name, isDir, fileSize, exists, and dict (changeDates) of sorted
local dates when backed up"""
def __init__(self, repo_path, name, exists, increments):
assert isinstance(repo_path, RdiffPath)
assert isinstance(name, str)
# Keep reference to the path and repo object.
self._repo = repo_path.repo
# Keep reference to this entry name.
self.name = name
# Relative path to the directory entry
self.path = os.path.join(
repo_path.path,
name)
# Absolute path to the directory
self.full_path = os.path.join(
self._repo.repo_root,
repo_path.path,
name)
self.exists = exists
self._increments = increments
@property
def display_name(self):
"""Return the most human readable filename. Without quote."""
value = self._repo.unquote(self.name)
return self._repo._decode(value)
@property
def isdir(self):
"""Lazy check if entry is a directory"""
if not hasattr(self, '_isdir'):
if self.exists:
# If the entry exists, check if it's a directory
self._isdir = os.path.isdir(self.full_path)
else:
# Check if increments is a directory
for increment in self._increments:
if increment.is_missing:
# Ignore missing increment...
continue
self._isdir = increment.isdir
break
return self._isdir
@property
def file_size(self):
"""Return the file size in bytes."""
if not hasattr(self, '_file_size'):
self._file_size = 0
if self.exists:
self._file_size = os.lstat(self.full_path)[6]
else:
# The only viable place to get the filesize of a deleted entry
# it to get it from file_statistics
stats = self._repo.get_file_statistic(self.last_change_date)
if stats:
# File stats uses unquoted name.
unquote_path = self._repo.unquote(self.path)
self._file_size = stats.get_source_size(unquote_path)
return self._file_size
@property
def change_dates(self):
"""Return a list of dates when this item has changes. Represent the
previous revision. From old to new."""
# Return previous computed value
if hasattr(self, '_change_dates'):
return self._change_dates
# Compute the dates
self._change_dates = []
for increment in self._increments:
# Skip "invisible" increments
if not increment.has_suffix:
continue
# Get date of the increment as reference
change_date = increment.date
# If the increment is a "missing" increment, need to get the date
# before the folder was removed.
if not increment.is_snapshot and increment.is_missing:
change_date = self._get_first_backup_after_date(change_date)
if change_date not in self._change_dates:
self._change_dates.append(change_date)
# If the directory exists, add the last known backup date.
if (self.exists
and self._repo.last_backup_date not in self._change_dates):
self._change_dates.append(self._repo.last_backup_date)
# Sort the dates
self._change_dates = sorted(self._change_dates)
# Return the list of dates.
return self._change_dates
def _get_first_backup_after_date(self, date):
""" Iterates the mirror_metadata files in the rdiff data dir """
index = bisect.bisect_right(self._repo.backup_dates, date)
return self._repo.backup_dates[index]
@property
def last_change_date(self):
return self.change_dates[-1]
class HistoryEntry:
def __init__(self, repo, date):
assert isinstance(repo, RdiffRepo)
assert isinstance(date, rdw_helpers.rdwTime)
self._repo = repo
self.date = date
@property
def size(self):
try:
return (self._repo._session_statistics[self.date]
.get_source_file_size())
except KeyError:
return 0
@property
def errors(self):
"""Return error messages."""
try:
self._repo._error_logs[self.date].read()
except KeyError:
return ""
@property
def increment_size(self):
try:
return (self._repo._session_statistics[self.date]
.get_increment_file_size())
except KeyError:
return 0
class IncrementEntry(object):
"""Instance of the class represent one increment at a specific date for one
repository. The base repository is provided in the default constructor
and the date is provided using an error_log.* file"""
MISSING_SUFFIX = b".missing"
SUFFIXES = [b".missing", b".snapshot.gz", b".snapshot",
b".diff.gz", b".data.gz", b".data", b".dir", b".diff"]
def __init__(self, repo_path, name):
"""Default constructor for an increment entry. User must provide the
repository directory and an entry name. The entry name correspond
to an error_log.* filename."""
assert isinstance(repo_path, RdiffPath)
assert isinstance(name, str)
# Keep reference to the current path.
self.repo_path = repo_path
# Get reference to the repository location.
self.repo = repo_path.repo
# The given entry name may has quote charater, replace them
self.name = name
@property
def date(self):
# Remove suffix from filename
filename = self._remove_suffix(self.name)
# Remove prefix from filename
date_string = filename.rsplit(b".", 1)[-1]
return_time = rdw_helpers.rdwTime()
try:
return_time.initFromString(date_string)
return return_time
except ValueError:
return None
def _open(self):
"""Should be used to open the increment file. This method handle
compressed vs not-compressed file."""
if self._is_compressed:
return gzip.open(os.path.join(self.repo.data_path, self.name), "r")
return open(os.path.join(self.repo.data_path, self.name), "r")
def read(self):
"""Read the error file and return it's content. Raise exception if the
file can't be read."""
return self._open().read()
@property
def filename(self):
filename = self._remove_suffix(self.name)
return filename.rsplit(b".", 1)[0]
@property
def has_suffix(self):
for suffix in self.SUFFIXES:
if self.name.endswith(suffix):
return True
return False
@property
def _is_compressed(self):
return self.name.endswith(b".gz")
@property
def isdir(self):
return self.name.endswith(b".dir")
@property
def is_missing(self):
"""Check if the curent entry is a missing increment."""
return self.name.endswith(self.MISSING_SUFFIX)
@property
def is_snapshot(self):
"""Check if the current entry is a snapshot increment."""
return (self.name.endswith(b".snapshot.gz")
or self.name.endswith(b".snapshot"))
def _remove_suffix(self, filename):
""" returns None if there was no suffix to remove. """
for suffix in self.SUFFIXES:
if filename.endswith(suffix):
return filename[:-len(suffix)]
return filename
def __str__(self):
return self.name
class FileStatisticsEntry(IncrementEntry):
"""Represent a single file_statistics."""
def __init__(self, repo_path, name):
IncrementEntry.__init__(self, repo_path, name)
# check to ensure we have a file_statistics entry
assert self.name.startswith(b"file_statistics.")
assert self.name.endswith(b".data") or self.name.endswith(b".data.gz")
def _load(self):
"""This method is used to read the file_statistics and create the
appropriate structure to quickly search it.
File Statistics contains different information related to each file of
the backup. This class provide a simple and easy way to access this
data."""
if hasattr(self, '_data'):
return
logger.debug("load file_statistics [%s]" %
self.repo._decode(self.name))
self._data = {}
with self._open() as f:
for line in f:
# Skip comments
if line.startswith(b"#"):
continue
# Read the line into array
line = line.rstrip(b'\r\n')
data_line = line.rsplit(b" ", 4)
# Read line into tuple
(filename, changed, source_size,
mirror_size, increment_size) = tuple(data_line)
# From tuple create an entry
self._data[filename] = {
"changed": changed,
"source_size": source_size,
"mirror_size": mirror_size,
"increment_size": increment_size}
def get_mirror_size(self, path):
"""Return the value of MirrorSize for the given file.
path is the relative path from repo root."""
self._load()
try:
return self._data[path]["mirror_size"]
except KeyError:
logger.warn("mirror size not found for [%s]" %
self.repo._decode(path))
return 0
def get_source_size(self, path):
"""Return the value of SourceSize for the given file.
path is the relative path from repo root."""
self._load()
try:
return self._data[path]["source_size"]
except KeyError:
logger.warn("source size not found for [%s]" %
self.repo._decode(path))
return 0
class SessionStatisticsEntry(IncrementEntry):
"""Represent a single session_statistics."""
def __init__(self, repo_path, name):
IncrementEntry.__init__(self, repo_path, name)
# check to ensure we have a file_statistics entry
assert self.name.startswith(b"session_statistics")
assert self.name.endswith(b".data") or self.name.endswith(b".data.gz")
def _load(self):
"""This method is used to read the session_statistics and create the
appropriate structure to quickly get the data.
File Statistics contains different information related to each file of
the backup. This class provide a simple and easy way to access this
data."""
if hasattr(self, '_data'):
return
logger.debug("load session_statistics [%s]" %
self.repo._decode(self.name))
self._data = {}
with self._open() as f:
for line in f:
# Skip comments
if line.startswith(b"#"):
continue
# Read the line into array
line = line.rstrip(b'\r\n')
data_line = line.split(b" ", 2)
# Read line into tuple
(key, value) = tuple(data_line)[0:2]
self._data[key] = value
def get_increment_file_size(self):
"""Return the IncrementFileSize from this entry"""
self._load()
try:
return int(self._data[b"IncrementFileSize"])
except KeyError:
return 0
def get_source_file_size(self):
"""Return the SourceFileSize from this entry"""
self._load()
try:
return int(self._data[b"SourceFileSize"])
except KeyError:
return 0
class RdiffRepo:
"""Represent one rdiff-backup repository."""
def __init__(self, user_root, path):
assert isinstance(user_root, str)
assert isinstance(path, str)
self.encoding = 'utf-8'
self.user_root = user_root.rstrip(b"/")
self.path = path.strip(b"/")
self.repo_root = os.path.join(self.user_root, self.path)
self.root_path = RdiffPath(self)
# The location of rdiff-backup-data directory.
self.data_path = os.path.join(self.repo_root, RDIFF_BACKUP_DATA)
assert isinstance(self.data_path, str)
# Check if the object is valid.
self._check()
# Check if the repository has hint for rdiffweb.
self._load_hints()
@property
def backup_dates(self):
"""Return a list of dates when backup was executed. This list is
sorted from old to new (ascending order). To identify dates,
'mirror_metadata' file located in rdiff-backup-data are used."""
if not hasattr(self, '_backup_dates'):
logger.debug("get backup dates for [%s]" %
self._decode(self.repo_root))
self._backup_dates = [
IncrementEntry(self.root_path, x).date
for x in filter(lambda x: x.startswith(b"mirror_metadata"),
self.data_entries)]
self._backup_dates = sorted(self._backup_dates)
return self._backup_dates
def _check(self):
"""Check if the repository exists."""
# Make sure repoRoot is a valid rdiff-backup repository
if (not os.access(self.data_path, os.F_OK)
or not os.path.isdir(self.data_path)):
logger.error("repository [%s] doesn't exists" %
self._decode(self.repo_root))
raise DoesNotExistError()
@property
def data_entries(self):
"""Return list of folder and file located directly in
rdiff-backup-data folder. Each file represent a data entry."""
# Get entries from increment data.
return os.listdir(self.data_path)
@property
def display_name(self):
"""Return the most human representation of the repository name."""
# NOTE : path may be empty, so return a simpel string.
if not self.path:
name_b = os.path.basename(self.user_root)
return self._decode(name_b)
return self._decode(self.path)
def _decode(self, value):
"""Used to decode a repository path into unicode."""
assert isinstance(value, str)
return value.decode(self.encoding, 'replace')
@property
def _error_logs(self):
"""Return list of IncrementEntry to represent each file statistics."""
if not hasattr(self, '_error_logs_data'):
self._error_logs_data = {}
for x in filter(lambda x: x.startswith(b"error_log."),
self.data_entries):
entry = IncrementEntry(self.root_path, x)
self._error_logs_data[entry.date] = entry
return self._error_logs_data
@property
def _file_statistics(self):
"""Return list of IncrementEntry to represent each file statistics."""
if not hasattr(self, '_file_statistics_data'):
self._file_statistics_data = {}
for x in filter(lambda x: x.startswith(b"file_statistics."),
self.data_entries):
entry = FileStatisticsEntry(self.root_path, x)
self._file_statistics_data[entry.date] = entry
return self._file_statistics_data
def get_file_statistic(self, date):
"""Return the file statistic for the given date.
Try to search for the given file statistic and return an object to
represent it."""
# Get reference to the FileStatisticsEntry
try:
return self._file_statistics[date]
except KeyError:
return None
def get_history_entries(self,
numLatestEntries=-1,
earliestDate=None,
latestDate=None):
"""Returns a list of HistoryEntry's
earliestDate and latestDate are inclusive."""
assert isinstance(numLatestEntries, int)
assert (earliestDate is None
or isinstance(earliestDate, rdw_helpers.rdwTime))
assert (latestDate is None
or isinstance(latestDate, rdw_helpers.rdwTime))
logger.debug("get history entries for [%s]" %
self._decode(self.repo_root))
entries = []
for backup_date in self.backup_dates:
# compare local times because of discrepency between client/server
# time zones
if earliestDate and backup_date < earliestDate:
continue
if latestDate and backup_date > latestDate:
continue
entries.append(HistoryEntry(self, backup_date))
if numLatestEntries != -1 and len(entries) == numLatestEntries:
return entries
return entries
def get_path(self, path):
"""Return a new instance of RdiffPath to represent the given path."""
assert isinstance(path, str)
# Get if the path request is the root path.
if len(path.strip(b"/")) == 0:
return self.root_path
return RdiffPath(self, path)
@property
def in_progress(self):
"""Check if a backup is in progress for the current repo."""
# Filter the files to keep current_mirror.* files
mirrorMarkers = filter(lambda x: x.startswith(b"current_mirror."),
self.data_entries)
return len(mirrorMarkers) > 1
@property
def last_backup_date(self):
"""Return the last known backup dates."""
if len(self.backup_dates) > 0:
return self.backup_dates[-1]
return None
def _load_hints(self):
"""For different purpose, a repository may contains an "rdiffweb" file
to provide hint to rdiffweb related to locale. At first, it's used to
define an encoding."""
hint_file = os.path.join(self.data_path, b"rdiffweb")
if not os.access(hint_file, os.F_OK) or os.path.isdir(hint_file):
return
logger.debug("reading hints for [%s]" % self._decode(self.repo_root))
with open(hint_file, "r") as f:
for line in f:
line = line.rstrip(b"\r\n")
parts = line.partition(b'=')
if not len(parts) == 3:
logger.warn("invalid hints [%s]" % self._decode(line))
continue
# Sets the encoding name (if valid)
if b"encoding" == parts[0]:
try:
b"".encode(parts[2])
self.encoding = parts[2]
except LookupError:
logger.warn("wrong encoding name [%s]" %
self._decode(parts[2]))
@property
def _session_statistics(self):
"""Return list of IncrementEntry to represent each sessions
statistics."""
if not hasattr(self, '_session_statistics_data'):
self._session_statistics_data = {}
for x in filter(lambda x: x.startswith(b"session_statistics."),
self.data_entries):
entry = SessionStatisticsEntry(self.root_path, x)
self._session_statistics_data[entry.date] = entry
return self._session_statistics_data
def unquote(self, name):
"""Remove quote from the given name."""
assert isinstance(name, str)
# This function just gives back the original text if it can decode it
def unquoted_char(match):
if not len(match.group()) == 4:
return match.group
try:
return chr(int(match.group()[1:]))
except ValueError:
return match.group
# Remove quote using regex
return re.sub(b";[0-9]{3}", unquoted_char, name, re.S)
class RdiffPath:
"""Represent an rdiff-backup repository. Either a root, a path or a file."""
def __init__(self, repo, path=b""):
assert isinstance(repo, RdiffRepo)
assert isinstance(path, str)
self.repo = repo
self.path = path.strip(b"/")
# Check if the object is valid
self._check()
def _check(self):
"""Check if the path is valid within the a repository."""
# Make sure it'S not a subdirectory of "rdiff-backup-data"
if self.path.startswith(RDIFF_BACKUP_DATA):
raise AccessDeniedError()
# Make sure there are no symlinks in the path
path_to_check = os.path.join(self.repo_root, self.path)
while True:
path_to_check = path_to_check.rstrip(b"/")
if os.path.islink(path_to_check):
raise AccessDeniedError()
(path_to_check, filename) = os.path.split(path_to_check)
if not filename:
break
# Make sure that the folder/file exists somewhere - either in the
# current folder, or in the incrementsDir
if not os.access(os.path.join(self.repo_root, self.path), os.F_OK):
(parent_folder, filename) = os.path.split(
os.path.join(self.repo_root, INCREMENTS, self.path))
try:
increments = os.listdir(parent_folder)
except OSError:
logger.exception("fail to list increments for [%s]" %
self._decode(parent_folder))
increments = []
increments = filter(lambda x: x.startswith(filename), increments)
if not increments:
logger.error("repository [%s] doesn't exists" %
self._decode(self.path))
raise DoesNotExistError()
def _decode(self, value):
"""Used to decode a repostior ypath into unicode."""
return self.repo._decode(value)
@property
def dir_entries(self):
"""Get directory entries for the current path. It is similar to
listdir() but for rdiff-backup."""
logger.debug("get directory entries for [%s]" %
self._decode(self.full_path))
# Group increments by filename
grouped_increment_entries = rdw_helpers.groupby(
self._increment_entries, lambda x: x.filename)
# Process each increment entries and combine this with the existing
# entries
entriesDict = {}
for filename, increments in grouped_increment_entries.iteritems():
# Check if filename exists
exists = filename in self.existing_entries
# Create DirEntry to represent the item
new_entry = DirEntry(
self,
filename,
exists,
increments)
entriesDict[filename] = new_entry
# Then add existing entries
for filename in self.existing_entries:
# Check if the entry was created by increments entry
if filename in entriesDict:
continue
# The entry doesn't exists (mostly because it ever change). So
# create a DirEntry to represent it
new_entry = DirEntry(
self,
filename,
True,
[])
entriesDict[filename] = new_entry
# Return the values (so the DirEntry objects)
return entriesDict.values()
def _execute(self, command, *args):
parms = [command]
parms.extend(args)
execution = subprocess.Popen(
parms, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
results = {}
results['exitCode'] = execution.wait()
(results['stdout'], results['stderr']) = execution.communicate()
return results
@property
def existing_entries(self):
"""Return the content of the directory using a simple listdir(). This
represent the last known backup. Thus it return existing entries."""
if not hasattr(self, '_existing_entries'):
logger.debug("get existing entries for [%s]" %
self._decode(self.full_path))
# Check if the directory exists. It may not exist if
# it has been delete
self._existing_entries = []
if os.access(self.full_path, os.F_OK):
# Get entries from directory structure
self._existing_entries = os.listdir(self.full_path)
# Remove "rdiff-backup-data" directory
if self.path == "":
self._existing_entries.remove(RDIFF_BACKUP_DATA)
return self._existing_entries
@property
def increments_path(self):
"""Get the increment path for the current path. This path is located
under rdiff-backup-data/increments"""
if not hasattr(self, '_increments_path'):
self._increments_path = os.path.join(
self.repo.repo_root,
INCREMENTS,
self.path)
return self._increments_path
@property
def full_path(self):
"""return the canonical path to the current path. Basically,
return absolute path"""
return os.path.join(self.repo_root, self.path)
@property
def _increment_entries(self):
"""Return all the increment entries for this path.
each entry represent a 'file' in the subdirectory structure under
rdiff-backup-data/increments"""
if not hasattr(self, '_increment_entries_data'):
logger.debug(
"get increments entries for [%s]" %
self._decode(self.increments_path))
# Check if increment directory exists. The path may not exists if
# the folder always exists and never changed.
self._increment_entries_data = []
if os.access(self.increments_path, os.F_OK):
# List content of the increment directory.
# Ignore sub-directories.
self._increment_entries_data = [
IncrementEntry(self, y) for y in filter(
lambda x: not os.path.isdir(
os.path.join(self.increments_path, x)),
os.listdir(self.increments_path))]
return self._increment_entries_data
@property
def repo_root(self):
"""return the repository path"""
return self.repo.repo_root
def restore(self, name, restore_date, use_zip):
"""Used to restore the given file located in this path."""
assert isinstance(name, str)
assert isinstance(restore_date, rdw_helpers.rdwTime)
name = name.lstrip(b"/")
# Determine the file name to be restore (from rdiff-backup
# point of view).
file_to_restore = os.path.join(self.full_path, name)
file_to_restore = self.repo.unquote(file_to_restore)
# Convert the date into epoch.
date_epoch = str(restore_date.getSeconds())
# Define a location where to restore the data
if name == b"" and self.path == b"":
filename = b"root"
if self.path != b"":
filename = os.path.basename(self.path)
if name != b"":
filename = name
# Generate a temporary location used to restore data.
tempdir = rdw_helpers.encode_s(rdw_config.get_config("tempdir",
default=None))
output = os.path.join(tempfile.mkdtemp(dir=tempdir), filename)
# Execute rdiff-backup to restore the data.
logger.info(b"execute rdiff-backup --restore-as-of=%s '%s' '%s'" %
(date_epoch, file_to_restore, output))
results = self._execute(
b"rdiff-backup",
b"--restore-as-of=" + date_epoch,
file_to_restore,
output)
# Check the result
if results['exitCode'] != 0 or not os.access(output, os.F_OK):
error = results['stderr']
if not error:
error = '''rdiff-backup claimed success, but did not restore
anything. This indicates a bug in rdiffweb. Please
report this to a developer.'''
raise UnknownError('unable to restore!\n' + error)
# The path restored is a directory and need to be archived using zip
# or tar
if os.path.isdir(output):
output_dir = output
try:
if use_zip:
output = output_dir + ZIP_SUFFIX
self._recursiveZipDir(output_dir, output)
else:
output = output_dir + TARGZ_SUFFIX
self._recursiveTarDir(output_dir, output)
finally:
rdw_helpers.remove_dir(output_dir)
# Return the location of the file to be restored
return output
@property
def restore_dates(self):
"""Get list of date to be restored for current path. From old to
new."""
logger.debug("get restore dates for [%s]" %
self._decode(self.full_path))
# If root directory return all dates.
if self.path == b"":
return self.repo.backup_dates
# Get reference to parent path
(parent_path, name) = os.path.split(self.path)
repo_path = RdiffPath(self.repo, parent_path)
# Get entries specific to the given name
entries = repo_path.dir_entries
entries = filter(lambda x: x.name == name, entries)
if not entries:
raise DoesNotExistError()
entry = entries[0]
# Retrieve all backup dates.
backup_dates = self.repo.backup_dates
# Don't allow restores before the dir existed
backup_dates = filter(
lambda x: x >= entry.change_dates[0], backup_dates)
if not entry.exists:
# If the dir has been deleted, don't allow restores after its
# deletion
backup_dates = filter(
lambda x: x <= entry.change_dates[-1], backup_dates)
return backup_dates
def _recursiveTarDir(self, dirPath, tarFilename):
"""This function is used during to archive a restored directory. It will
create a tar gz archive with the specified directory."""
assert isinstance(dirPath, str)
assert isinstance(tarFilename, str)
assert os.path.isdir(dirPath)
import tarfile
dirPath = os.path.normpath(dirPath)
# Create a tar.gz archive
logger.info("creating a tar file [%s] from [%s]",
self._decode(tarFilename), self._decode(dirPath))
tar = tarfile.open(tarFilename, "w:gz")
# List content of the directory.
files = os.listdir(dirPath)
# Add files to the archive
for filename in files:
# Pass in file as name explicitly so we get relative paths
tar.add(os.path.join(dirPath, filename), filename)
# Close the archive
tar.close()
def _recursiveZipDir(self, dirPath, zipFilename):
"""This function is used during to archive a restored directory. It will
create a zip archive with the specified directory."""
assert isinstance(dirPath, str)
assert isinstance(zipFilename, str)
assert os.path.isdir(dirPath)
import zipfile
dirPath = os.path.normpath(dirPath)
# Create the archive
zipObj = zipfile.ZipFile(zipFilename, "w", zipfile.ZIP_DEFLATED)
# Add files to archive
for root, dirs, files in os.walk(dirPath, topdown=True):
for name in files:
fullPath = os.path.join(root, name)
assert fullPath.startswith(dirPath)
relPath = fullPath[len(dirPath) + 1:]
zipObj.write(fullPath, relPath)
zipObj.close()
rdiffweb-v0.7.1/rdiffweb/locales/ 0000775 0000000 0000000 00000000000 12572375337 0016725 5 ustar 00root root 0000000 0000000 rdiffweb-v0.7.1/rdiffweb/locales/fr/ 0000775 0000000 0000000 00000000000 12572375337 0017334 5 ustar 00root root 0000000 0000000 rdiffweb-v0.7.1/rdiffweb/locales/fr/LC_MESSAGES/ 0000775 0000000 0000000 00000000000 12572375337 0021121 5 ustar 00root root 0000000 0000000 rdiffweb-v0.7.1/rdiffweb/locales/fr/LC_MESSAGES/messages.po 0000664 0000000 0000000 00000030234 12572375337 0023272 0 ustar 00root root 0000000 0000000 # French translations for rdiffweb.
# Copyright (C) 2014 ORGANIZATION
# This file is distributed under the same license as the rdiffweb project.
# FIRST AUTHOR , 2014.
#
msgid ""
msgstr ""
"Project-Id-Version: rdiffweb 0.6.5\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2015-03-28 13:50-0400\n"
"PO-Revision-Date: 2014-11-14 10:00-0500\n"
"Last-Translator: FULL NAME \n"
"Language-Team: fr \n"
"Plural-Forms: nplurals=2; plural=(n > 1)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 1.3\n"
#: rdiffweb/librdiff.py:56 rdiffweb/librdiff.py:75
msgid "An unknown error occurred."
msgstr "Une erreur inconnue s'est produite."
#: rdiffweb/librdiff.py:62 rdiffweb/page_admin.py:55 rdiffweb/page_admin.py:79
msgid "Access denied."
msgstr "Accès refusé."
#: rdiffweb/librdiff.py:68
msgid "The repository does not exist."
msgstr "Le dépôt n'existe pas."
#: rdiffweb/page_admin.py:69
msgid "Can't get admin information."
msgstr "Impossible d'obtenir les informations administrateur."
#: rdiffweb/page_admin.py:104
msgid "Can't get user list."
msgstr "Impossible d'obtenir la liste des utilisateurs."
#: rdiffweb/page_admin.py:154
msgid "User information modified successfully."
msgstr "Utilisateur modifié avec succès."
#: rdiffweb/page_browse.py:96
msgid ""
"A backup is currently in progress to this repository. The displayed data "
"may be inconsistent."
msgstr ""
"Une sauvegarde est en cours dans ce dépôt. Les données affichées peuvent "
"être incohérentes."
#: rdiffweb/page_restore.py:105 rdiffweb/page_status.py:66
msgid "Invalid date."
msgstr "Date non valide."
#: rdiffweb/page_restore.py:110
msgid ""
"A backup is currently in progress to this repository. Restores are "
"disabled until this backup is complete."
msgstr ""
"Une sauvegarde est en cours dans ce dépôt. La restauration sera "
"désactivée jusqu'à ce que cette sauvegarde soit terminée."
#: rdiffweb/page_restore.py:120
msgid "Fail to restore."
msgstr "Impossible de restaurer les données."
#: rdiffweb/templates/admin.html:1 rdiffweb/templates/nav_bar.html:21
msgid "Admin area"
msgstr "Espace administrative"
#: rdiffweb/templates/admin.html:19
msgid "users"
msgstr "utilisateurs"
#: rdiffweb/templates/admin.html:25
msgid "repositories"
msgstr "dépôts"
#: rdiffweb/templates/admin_nav_bar.html:4
msgid "General info"
msgstr "Informations générales"
#: rdiffweb/templates/admin_nav_bar.html:7
#: rdiffweb/templates/admin_users.html:57
msgid "Users"
msgstr "Utilisateurs"
#: rdiffweb/templates/admin_users.html:1
msgid "User management"
msgstr "Gestion des utilisateurs"
#: rdiffweb/templates/admin_users.html:23
msgid "Active users"
msgstr "Utilisateurs actifs"
#: rdiffweb/templates/admin_users.html:29
msgid "Admin users"
msgstr "Utilisateurs administrateurs"
#: rdiffweb/templates/admin_users.html:38
msgid "Search user"
msgstr "Rechercher un utilisateur"
#: rdiffweb/templates/admin_users.html:40
msgid "Name, email or username"
msgstr "Nom, courriel ou nom d'utilisateur"
#: rdiffweb/templates/admin_users.html:46
msgid "Search"
msgstr "Rechercher"
#: rdiffweb/templates/admin_users.html:62
#: rdiffweb/templates/admin_users.html:110
msgid "Add user"
msgstr "Ajouter un utilisateur"
#: rdiffweb/templates/admin_users.html:76
msgid "Admin"
msgstr "Administrateur"
#: rdiffweb/templates/admin_users.html:79
msgid "It's you"
msgstr "C'est vous"
#: rdiffweb/templates/admin_users.html:89
msgid "Edit"
msgstr "Modifier"
#: rdiffweb/templates/admin_users.html:95
#: rdiffweb/templates/admin_users.html:231
msgid "Delete"
msgstr "Supprimer"
#: rdiffweb/templates/admin_users.html:114
msgid "LDAP enabled!"
msgstr "LDAP activé!"
#: rdiffweb/templates/admin_users.html:115
msgid ""
"To create an LDAP user, use the same username and don't enter an email "
"and password."
msgstr ""
"Pour créer un utilisateur LDAP, utilisez le même nom d'utilisateur et "
"n'entrez pas de courriel ou de mot de passe."
#: rdiffweb/templates/admin_users.html:120 rdiffweb/templates/login.html:27
msgid "Username"
msgstr "Nom d'utilisateur"
#: rdiffweb/templates/admin_users.html:128
#: rdiffweb/templates/admin_users.html:176
msgid "Email"
msgstr "Courriel"
#: rdiffweb/templates/admin_users.html:137
#: rdiffweb/templates/admin_users.html:185 rdiffweb/templates/login.html:30
msgid "Password"
msgstr "Mot de passe"
#: rdiffweb/templates/admin_users.html:146
#: rdiffweb/templates/admin_users.html:194
msgid "Root directory"
msgstr "Répertoire racine"
#: rdiffweb/templates/admin_users.html:157
#: rdiffweb/templates/admin_users.html:212
msgid "Is administrator"
msgstr "Est un administrateur"
#: rdiffweb/templates/admin_users.html:170
#, python-format
msgid "Edit user %(name)s"
msgstr "Modifier l'utilisateur %(name)s"
#: rdiffweb/templates/admin_users.html:171
msgid "Save changes"
msgstr "Enregistrer modifications"
#: rdiffweb/templates/admin_users.html:216
msgid "You cannot remove your own admin rights."
msgstr "Vous ne pouvez pas supprimer vos propres droits d'administrateur."
#: rdiffweb/templates/admin_users.html:231
#, python-format
msgid "Delete user %(name)s"
msgstr "Supprimer l'utilisateur %(name)s"
#: rdiffweb/templates/admin_users.html:234
#, python-format
msgid "Are you sure that you wish to delete user `%(username)s`?"
msgstr "Êtes-vous sûr que vous voulez supprimer l'utilisateur `%(username)s`?"
#: rdiffweb/templates/browse.html:6 rdiffweb/templates/browse.html:30
#: rdiffweb/templates/history.html:20
msgid "Restore folder"
msgstr "Restaurer répertoire"
#: rdiffweb/templates/browse.html:8 rdiffweb/templates/browse.html:27
#: rdiffweb/templates/history.html:17
msgid "Browse folder"
msgstr "Parcourir répertoire"
#: rdiffweb/templates/browse.html:14 rdiffweb/templates/history.html:8
#: rdiffweb/templates/locations.html:1 rdiffweb/templates/nav_bar.html:16
msgid "Repositories"
msgstr "Dépôts"
#: rdiffweb/templates/browse.html:33 rdiffweb/templates/history.html:23
msgid "View history"
msgstr "Voir historique"
#: rdiffweb/templates/browse.html:43
msgid "Name"
msgstr "Nom"
#: rdiffweb/templates/browse.html:44 rdiffweb/templates/history.html:33
msgid "Size"
msgstr "Taille"
#: rdiffweb/templates/browse.html:45
msgid "Rev."
msgstr "Rév."
#: rdiffweb/templates/browse.html:111
#, python-format
msgid "Revisions (%(count)s)"
msgstr "Révisions (%(count)s)"
#: rdiffweb/templates/browse.html:121 rdiffweb/templates/browse.html:125
msgid "Download"
msgstr "Télécharger"
#: rdiffweb/templates/history.html:4
msgid "Backup history"
msgstr "Historique des sauvegardes"
#: rdiffweb/templates/history.html:32
msgid "Date"
msgstr "Date"
#: rdiffweb/templates/history.html:34
msgid "Result"
msgstr "Résultat"
#: rdiffweb/templates/history.html:53 rdiffweb/templates/locations.html:32
msgid "In progress"
msgstr "Sauvegarde en cours"
#: rdiffweb/templates/history.html:55
msgid "Success"
msgstr "Succès"
#: rdiffweb/templates/history.html:58 rdiffweb/templates/locations.html:31
msgid "Error"
msgstr "Erreur"
#: rdiffweb/templates/locations.html:7
msgid "You don't have any repositories configured."
msgstr "Vous n'avez pas de dépôts configurés."
#: rdiffweb/templates/locations.html:33
msgid "Last backup: "
msgstr "Dernière sauvegarde : "
#: rdiffweb/templates/login.html:1 rdiffweb/templates/login.html:24
#: rdiffweb/templates/login.html:32
msgid "Sign in"
msgstr "Se connecter"
#: rdiffweb/templates/login.html:7 rdiffweb/templates/nav_bar.html:10
#: rdiffweb/templates/page_start.html:4
msgid "rdiffweb"
msgstr "rdiffweb"
#: rdiffweb/templates/login.html:9
msgid ""
"Originally developed by Josh Nisly, rdiffweb is a web interface for "
"browsing and restoring from rdiff-backup repositories."
msgstr ""
"Initialement développé par Josh Nisly, rdiffweb est une interface web "
"pour la naviguer et la restaurer à partir des dépôts de rdiff-backup."
#: rdiffweb/templates/login.html:13
#, python-format
msgid "version %(version)s"
msgstr "version %(version)s"
#: rdiffweb/templates/login.html:26
msgid "Enter your username and password to log in."
msgstr "Entrez votre nom d'utilisateur et mot de passe pour vous connecter."
#: rdiffweb/templates/macros.html:8 rdiffweb/templates/macros.html:15
msgid "Close"
msgstr "Fermer"
#: rdiffweb/templates/message.html:3 rdiffweb/templates/status.html:35
msgid "Well done!"
msgstr "Bravo!"
#: rdiffweb/templates/message.html:10
msgid "Warning!"
msgstr "Avertissement!"
#: rdiffweb/templates/message.html:14
msgid "Error!"
msgstr "Erreur!"
#: rdiffweb/templates/nav_bar.html:6
msgid "Toggle navigation"
msgstr "Basculer la navigation"
#: rdiffweb/templates/nav_bar.html:17 rdiffweb/templates/status.html:1
msgid "Status"
msgstr "État"
#: rdiffweb/templates/nav_bar.html:18
msgid "Preferences"
msgstr "Préférences"
#: rdiffweb/templates/nav_bar.html:29
msgid "Logout"
msgstr "Déconnexion"
#: rdiffweb/templates/nav_bar.html:32
#, python-format
msgid "Signed in as %(username)s"
msgstr "Session ouverte sous %(username)s"
#: rdiffweb/templates/prefs.html:1
msgid "User Preferences"
msgstr "Préférences"
#: rdiffweb/templates/prefs.html:11
msgid "Change password"
msgstr "Modifier le mot de passe"
#: rdiffweb/templates/prefs.html:15
msgid "Current password"
msgstr "Mot de passe actuel"
#: rdiffweb/templates/prefs.html:23
msgid "New password"
msgstr "Nouveau mot de passe"
#: rdiffweb/templates/prefs.html:30
msgid "Confirm new password"
msgstr "Confirmer mot de passe"
#: rdiffweb/templates/prefs.html:38
msgid "Change"
msgstr "Modifier"
#: rdiffweb/templates/prefs.html:44 rdiffweb/templates/prefs.html:51
msgid "Refresh"
msgstr "Actualiser"
#: rdiffweb/templates/prefs.html:48
msgid ""
"Refresh the list of repositories associated to your account. If you "
"recently add a new repository and it doesn't show, you may try to refresh"
" the list."
msgstr ""
"Actualiser la liste des dépôts associés à votre compte. Si vous avez "
"récemment ajoutez un nouveau référentiel et il ne apparaît pas, vous "
"pouvez essayer d'actualiser la liste."
#: rdiffweb/templates/setup.html:7
msgid "Setup rdiffweb"
msgstr "Configuration de rdiffweb"
#: rdiffweb/templates/setup.html:12
msgid "Congratulations, rdiffweb setup is now complete!"
msgstr "Félicitations, la configuration de rdiffweb est maintenant terminée!"
#: rdiffweb/templates/setup.html:13
msgid "Click here"
msgstr "Cliquez ici"
#: rdiffweb/templates/setup.html:14
msgid "to log into rdiffweb using default administrator account:"
msgstr ""
"pour vous connecter à rdiffweb enutilisant le compte d'administrateur par"
" défaut:"
#: rdiffweb/templates/setup.html:16
msgid "username: "
msgstr "nom d'utilisateur : "
#: rdiffweb/templates/setup.html:17
msgid "password: "
msgstr "mot de passe : "
#: rdiffweb/templates/setup.html:28
msgid ""
"rdiffweb has not been configured, so we need to do that before logging "
"in. Configuration will only take a few minutes."
msgstr ""
"rdiffweb n'a pas été configuré. Nous avons besoin de le faire avant de "
"vous connecter. La configuration ne vous prendra que quelques minutes."
#: rdiffweb/templates/setup.html:32
msgid "Continue..."
msgstr "Continuer ..."
#: rdiffweb/templates/status.html:15
msgid "Subscribe"
msgstr "Souscrire"
#: rdiffweb/templates/status.html:25
msgid "Show all"
msgstr "Afficher tout"
#: rdiffweb/templates/status.html:28
msgid "Show errors only"
msgstr "Afficher erreurs seulement"
#: rdiffweb/templates/status.html:37
msgid "There are no recent backups with errors."
msgstr "Il n'y a pas de sauvegardes récentes avec des erreurs."
#: rdiffweb/templates/status.html:39
msgid "There are no recent backups to display."
msgstr "Il n'y a pas de sauvegardes récentes à afficher."
#: rdiffweb/templates/status.html:51
msgid "Successful backups for "
msgstr "Sauvegardes réussies pour "
#: rdiffweb/templates/status.html:55
msgid "The following backups have completed successfully: "
msgstr "Les sauvegardes suivantes se sont terminés avec succès: "
#: rdiffweb/templates/status.html:73
msgid "Backup completed with errors:"
msgstr "Sauvegarde terminée avec des erreurs: "
#: rdiffweb/templates/status.html:82
msgid "Backup size: "
msgstr "Taille de la sauvegarde: "
#: rdiffweb/templates/status.html:89
msgid "The following repositories contain errors: "
msgstr "Les dépôts suivants contiennent des erreurs: "
rdiffweb-v0.7.1/rdiffweb/locales/messages.pot 0000664 0000000 0000000 00000022447 12572375337 0021271 0 ustar 00root root 0000000 0000000 # Translations template for rdiffweb.
# Copyright (C) 2015 ORGANIZATION
# This file is distributed under the same license as the rdiffweb project.
# FIRST AUTHOR , 2015.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: rdiffweb 0.7.0\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2015-03-28 13:50-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME \n"
"Language-Team: LANGUAGE \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 1.3\n"
#: rdiffweb/librdiff.py:56 rdiffweb/librdiff.py:75
msgid "An unknown error occurred."
msgstr ""
#: rdiffweb/librdiff.py:62 rdiffweb/page_admin.py:55 rdiffweb/page_admin.py:79
msgid "Access denied."
msgstr ""
#: rdiffweb/librdiff.py:68
msgid "The repository does not exist."
msgstr ""
#: rdiffweb/page_admin.py:69
msgid "Can't get admin information."
msgstr ""
#: rdiffweb/page_admin.py:104
msgid "Can't get user list."
msgstr ""
#: rdiffweb/page_admin.py:154
msgid "User information modified successfully."
msgstr ""
#: rdiffweb/page_browse.py:96
msgid ""
"A backup is currently in progress to this repository. The displayed data may "
"be inconsistent."
msgstr ""
#: rdiffweb/page_restore.py:105 rdiffweb/page_status.py:66
msgid "Invalid date."
msgstr ""
#: rdiffweb/page_restore.py:110
msgid ""
"A backup is currently in progress to this repository. Restores are disabled "
"until this backup is complete."
msgstr ""
#: rdiffweb/page_restore.py:120
msgid "Fail to restore."
msgstr ""
#: rdiffweb/templates/admin.html:1 rdiffweb/templates/nav_bar.html:21
msgid "Admin area"
msgstr ""
#: rdiffweb/templates/admin.html:19
msgid "users"
msgstr ""
#: rdiffweb/templates/admin.html:25
msgid "repositories"
msgstr ""
#: rdiffweb/templates/admin_nav_bar.html:4
msgid "General info"
msgstr ""
#: rdiffweb/templates/admin_nav_bar.html:7 rdiffweb/templates/admin_users.html:57
msgid "Users"
msgstr ""
#: rdiffweb/templates/admin_users.html:1
msgid "User management"
msgstr ""
#: rdiffweb/templates/admin_users.html:23
msgid "Active users"
msgstr ""
#: rdiffweb/templates/admin_users.html:29
msgid "Admin users"
msgstr ""
#: rdiffweb/templates/admin_users.html:38
msgid "Search user"
msgstr ""
#: rdiffweb/templates/admin_users.html:40
msgid "Name, email or username"
msgstr ""
#: rdiffweb/templates/admin_users.html:46
msgid "Search"
msgstr ""
#: rdiffweb/templates/admin_users.html:62 rdiffweb/templates/admin_users.html:110
msgid "Add user"
msgstr ""
#: rdiffweb/templates/admin_users.html:76
msgid "Admin"
msgstr ""
#: rdiffweb/templates/admin_users.html:79
msgid "It's you"
msgstr ""
#: rdiffweb/templates/admin_users.html:89
msgid "Edit"
msgstr ""
#: rdiffweb/templates/admin_users.html:95 rdiffweb/templates/admin_users.html:231
msgid "Delete"
msgstr ""
#: rdiffweb/templates/admin_users.html:114
msgid "LDAP enabled!"
msgstr ""
#: rdiffweb/templates/admin_users.html:115
msgid ""
"To create an LDAP user, use the same username and don't enter an email and "
"password."
msgstr ""
#: rdiffweb/templates/admin_users.html:120 rdiffweb/templates/login.html:27
msgid "Username"
msgstr ""
#: rdiffweb/templates/admin_users.html:128 rdiffweb/templates/admin_users.html:176
msgid "Email"
msgstr ""
#: rdiffweb/templates/admin_users.html:137 rdiffweb/templates/admin_users.html:185
#: rdiffweb/templates/login.html:30
msgid "Password"
msgstr ""
#: rdiffweb/templates/admin_users.html:146 rdiffweb/templates/admin_users.html:194
msgid "Root directory"
msgstr ""
#: rdiffweb/templates/admin_users.html:157 rdiffweb/templates/admin_users.html:212
msgid "Is administrator"
msgstr ""
#: rdiffweb/templates/admin_users.html:170
#, python-format
msgid "Edit user %(name)s"
msgstr ""
#: rdiffweb/templates/admin_users.html:171
msgid "Save changes"
msgstr ""
#: rdiffweb/templates/admin_users.html:216
msgid "You cannot remove your own admin rights."
msgstr ""
#: rdiffweb/templates/admin_users.html:231
#, python-format
msgid "Delete user %(name)s"
msgstr ""
#: rdiffweb/templates/admin_users.html:234
#, python-format
msgid "Are you sure that you wish to delete user `%(username)s`?"
msgstr ""
#: rdiffweb/templates/browse.html:6 rdiffweb/templates/browse.html:30
#: rdiffweb/templates/history.html:20
msgid "Restore folder"
msgstr ""
#: rdiffweb/templates/browse.html:8 rdiffweb/templates/browse.html:27
#: rdiffweb/templates/history.html:17
msgid "Browse folder"
msgstr ""
#: rdiffweb/templates/browse.html:14 rdiffweb/templates/history.html:8
#: rdiffweb/templates/locations.html:1 rdiffweb/templates/nav_bar.html:16
msgid "Repositories"
msgstr ""
#: rdiffweb/templates/browse.html:33 rdiffweb/templates/history.html:23
msgid "View history"
msgstr ""
#: rdiffweb/templates/browse.html:43
msgid "Name"
msgstr ""
#: rdiffweb/templates/browse.html:44 rdiffweb/templates/history.html:33
msgid "Size"
msgstr ""
#: rdiffweb/templates/browse.html:45
msgid "Rev."
msgstr ""
#: rdiffweb/templates/browse.html:111
#, python-format
msgid "Revisions (%(count)s)"
msgstr ""
#: rdiffweb/templates/browse.html:121 rdiffweb/templates/browse.html:125
msgid "Download"
msgstr ""
#: rdiffweb/templates/history.html:4
msgid "Backup history"
msgstr ""
#: rdiffweb/templates/history.html:32
msgid "Date"
msgstr ""
#: rdiffweb/templates/history.html:34
msgid "Result"
msgstr ""
#: rdiffweb/templates/history.html:53 rdiffweb/templates/locations.html:32
msgid "In progress"
msgstr ""
#: rdiffweb/templates/history.html:55
msgid "Success"
msgstr ""
#: rdiffweb/templates/history.html:58 rdiffweb/templates/locations.html:31
msgid "Error"
msgstr ""
#: rdiffweb/templates/locations.html:7
msgid "You don't have any repositories configured."
msgstr ""
#: rdiffweb/templates/locations.html:33
msgid "Last backup: "
msgstr ""
#: rdiffweb/templates/login.html:1 rdiffweb/templates/login.html:24
#: rdiffweb/templates/login.html:32
msgid "Sign in"
msgstr ""
#: rdiffweb/templates/login.html:7 rdiffweb/templates/nav_bar.html:10
#: rdiffweb/templates/page_start.html:4
msgid "rdiffweb"
msgstr ""
#: rdiffweb/templates/login.html:9
msgid ""
"Originally developed by Josh Nisly, rdiffweb is a web interface for browsing "
"and restoring from rdiff-backup repositories."
msgstr ""
#: rdiffweb/templates/login.html:13
#, python-format
msgid "version %(version)s"
msgstr ""
#: rdiffweb/templates/login.html:26
msgid "Enter your username and password to log in."
msgstr ""
#: rdiffweb/templates/macros.html:8 rdiffweb/templates/macros.html:15
msgid "Close"
msgstr ""
#: rdiffweb/templates/message.html:3 rdiffweb/templates/status.html:35
msgid "Well done!"
msgstr ""
#: rdiffweb/templates/message.html:10
msgid "Warning!"
msgstr ""
#: rdiffweb/templates/message.html:14
msgid "Error!"
msgstr ""
#: rdiffweb/templates/nav_bar.html:6
msgid "Toggle navigation"
msgstr ""
#: rdiffweb/templates/nav_bar.html:17 rdiffweb/templates/status.html:1
msgid "Status"
msgstr ""
#: rdiffweb/templates/nav_bar.html:18
msgid "Preferences"
msgstr ""
#: rdiffweb/templates/nav_bar.html:29
msgid "Logout"
msgstr ""
#: rdiffweb/templates/nav_bar.html:32
#, python-format
msgid "Signed in as %(username)s"
msgstr ""
#: rdiffweb/templates/prefs.html:1
msgid "User Preferences"
msgstr ""
#: rdiffweb/templates/prefs.html:11
msgid "Change password"
msgstr ""
#: rdiffweb/templates/prefs.html:15
msgid "Current password"
msgstr ""
#: rdiffweb/templates/prefs.html:23
msgid "New password"
msgstr ""
#: rdiffweb/templates/prefs.html:30
msgid "Confirm new password"
msgstr ""
#: rdiffweb/templates/prefs.html:38
msgid "Change"
msgstr ""
#: rdiffweb/templates/prefs.html:44 rdiffweb/templates/prefs.html:51
msgid "Refresh"
msgstr ""
#: rdiffweb/templates/prefs.html:48
msgid ""
"Refresh the list of repositories associated to your account. If you recently "
"add a new repository and it doesn't show, you may try to refresh the list."
msgstr ""
#: rdiffweb/templates/setup.html:7
msgid "Setup rdiffweb"
msgstr ""
#: rdiffweb/templates/setup.html:12
msgid "Congratulations, rdiffweb setup is now complete!"
msgstr ""
#: rdiffweb/templates/setup.html:13
msgid "Click here"
msgstr ""
#: rdiffweb/templates/setup.html:14
msgid "to log into rdiffweb using default administrator account:"
msgstr ""
#: rdiffweb/templates/setup.html:16
msgid "username: "
msgstr ""
#: rdiffweb/templates/setup.html:17
msgid "password: "
msgstr ""
#: rdiffweb/templates/setup.html:28
msgid ""
"rdiffweb has not been configured, so we need to do that before logging in. "
"Configuration will only take a few minutes."
msgstr ""
#: rdiffweb/templates/setup.html:32
msgid "Continue..."
msgstr ""
#: rdiffweb/templates/status.html:15
msgid "Subscribe"
msgstr ""
#: rdiffweb/templates/status.html:25
msgid "Show all"
msgstr ""
#: rdiffweb/templates/status.html:28
msgid "Show errors only"
msgstr ""
#: rdiffweb/templates/status.html:37
msgid "There are no recent backups with errors."
msgstr ""
#: rdiffweb/templates/status.html:39
msgid "There are no recent backups to display."
msgstr ""
#: rdiffweb/templates/status.html:51
msgid "Successful backups for "
msgstr ""
#: rdiffweb/templates/status.html:55
msgid "The following backups have completed successfully: "
msgstr ""
#: rdiffweb/templates/status.html:73
msgid "Backup completed with errors:"
msgstr ""
#: rdiffweb/templates/status.html:82
msgid "Backup size: "
msgstr ""
#: rdiffweb/templates/status.html:89
msgid "The following repositories contain errors: "
msgstr ""
rdiffweb-v0.7.1/rdiffweb/locales/ru/ 0000775 0000000 0000000 00000000000 12572375337 0017353 5 ustar 00root root 0000000 0000000 rdiffweb-v0.7.1/rdiffweb/locales/ru/LC_MESSAGES/ 0000775 0000000 0000000 00000000000 12572375337 0021140 5 ustar 00root root 0000000 0000000 rdiffweb-v0.7.1/rdiffweb/locales/ru/LC_MESSAGES/messages.po 0000664 0000000 0000000 00000033173 12572375337 0023316 0 ustar 00root root 0000000 0000000 # Translations template for rdiffweb.
# Copyright (C) 2015 ORGANIZATION
# This file is distributed under the same license as the rdiffweb project.
# FIRST AUTHOR , 2015.
#
msgid ""
msgstr ""
"Project-Id-Version: rdiffweb 0.7.0\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2015-03-28 13:50-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Евгений Максимов \n"
"Language-Team: ru \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 1.3\n"
#: rdiffweb/librdiff.py:56 rdiffweb/librdiff.py:75
msgid "An unknown error occurred."
msgstr "Произошла неизвестная ошибка."
#: rdiffweb/librdiff.py:62 rdiffweb/page_admin.py:55 rdiffweb/page_admin.py:79
msgid "Access denied."
msgstr "Доступ запрещен."
#: rdiffweb/librdiff.py:68
msgid "The repository does not exist."
msgstr "Хранилище не существует."
#: rdiffweb/page_admin.py:69
msgid "Can't get admin information."
msgstr "Не удается получить информацию администратора."
#: rdiffweb/page_admin.py:104
msgid "Can't get user list."
msgstr "Не удается получить список пользователей."
#: rdiffweb/page_admin.py:154
msgid "User information modified successfully."
msgstr "Информация пользователя успешно изменена."
#: rdiffweb/page_browse.py:96
msgid ""
"A backup is currently in progress to this repository. The displayed data may "
"be inconsistent."
msgstr ""
"В настоящее время осуществляется резервное копирование в это хранилище. "
"Отображаемые данные могут быть некорректны."
#: rdiffweb/page_restore.py:105 rdiffweb/page_status.py:66
msgid "Invalid date."
msgstr "Неверная дата."
#: rdiffweb/page_restore.py:110
msgid ""
"A backup is currently in progress to this repository. Restores are disabled "
"until this backup is complete."
msgstr ""
"В настоящее время осуществляется резервное копирование в это хранилище. "
"Восстановление отключено до завершения процесса."
#: rdiffweb/page_restore.py:120
msgid "Fail to restore."
msgstr "Ошибка восстановления."
#: rdiffweb/templates/admin.html:1 rdiffweb/templates/nav_bar.html:21
msgid "Admin area"
msgstr "Администрирование"
#: rdiffweb/templates/admin.html:19
msgid "users"
msgstr "пользователей(я)"
#: rdiffweb/templates/admin.html:25
msgid "repositories"
msgstr "хранилищ(а)"
#: rdiffweb/templates/admin_nav_bar.html:4
msgid "General info"
msgstr "Общая информация"
#: rdiffweb/templates/admin_nav_bar.html:7 rdiffweb/templates/admin_users.html:57
msgid "Users"
msgstr "Пользователи"
#: rdiffweb/templates/admin_users.html:1
msgid "User management"
msgstr "Управление пользователями"
#: rdiffweb/templates/admin_users.html:23
msgid "Active users"
msgstr "Активные пользователи"
#: rdiffweb/templates/admin_users.html:29
msgid "Admin users"
msgstr "Администраторы"
#: rdiffweb/templates/admin_users.html:38
msgid "Search user"
msgstr "Поиск пользователя"
#: rdiffweb/templates/admin_users.html:40
msgid "Name, email or username"
msgstr "Имя, email или логин"
#: rdiffweb/templates/admin_users.html:46
msgid "Search"
msgstr "Поиск"
#: rdiffweb/templates/admin_users.html:62 rdiffweb/templates/admin_users.html:110
msgid "Add user"
msgstr "Добавить пользователя"
#: rdiffweb/templates/admin_users.html:76
msgid "Admin"
msgstr "Администратор"
#: rdiffweb/templates/admin_users.html:79
msgid "It's you"
msgstr "Это вы"
#: rdiffweb/templates/admin_users.html:89
msgid "Edit"
msgstr "Редактировать"
#: rdiffweb/templates/admin_users.html:95 rdiffweb/templates/admin_users.html:231
msgid "Delete"
msgstr "Удалить"
#: rdiffweb/templates/admin_users.html:114
msgid "LDAP enabled!"
msgstr "LDAP включен!"
#: rdiffweb/templates/admin_users.html:115
msgid ""
"To create an LDAP user, use the same username and don't enter an email and "
"password."
msgstr ""
"Для создания LDAP пользователя, используйте тот же логин и не вводите "
"email и пароль."
#: rdiffweb/templates/admin_users.html:120 rdiffweb/templates/login.html:27
msgid "Username"
msgstr "Логин"
#: rdiffweb/templates/admin_users.html:128 rdiffweb/templates/admin_users.html:176
msgid "Email"
msgstr "Email"
#: rdiffweb/templates/admin_users.html:137 rdiffweb/templates/admin_users.html:185
#: rdiffweb/templates/login.html:30
msgid "Password"
msgstr "Пароль"
#: rdiffweb/templates/admin_users.html:146 rdiffweb/templates/admin_users.html:194
msgid "Root directory"
msgstr "Корневая директория"
#: rdiffweb/templates/admin_users.html:157 rdiffweb/templates/admin_users.html:212
msgid "Is administrator"
msgstr "Администратор"
#: rdiffweb/templates/admin_users.html:170
#, python-format
msgid "Edit user %(name)s"
msgstr "Редактировать пользователя %(name)s"
#: rdiffweb/templates/admin_users.html:171
msgid "Save changes"
msgstr "Сохранить изменения"
#: rdiffweb/templates/admin_users.html:216
msgid "You cannot remove your own admin rights."
msgstr "Вы не можете лишить себя прав администратора."
#: rdiffweb/templates/admin_users.html:231
#, python-format
msgid "Delete user %(name)s"
msgstr "Удалить пользователя %(name)s"
#: rdiffweb/templates/admin_users.html:234
#, python-format
msgid "Are you sure that you wish to delete user `%(username)s`?"
msgstr "Вы действительно хотите удалить пользователя `%(username)s`?"
#: rdiffweb/templates/browse.html:6 rdiffweb/templates/browse.html:30
#: rdiffweb/templates/history.html:20
msgid "Restore folder"
msgstr "Восстановить директорию"
#: rdiffweb/templates/browse.html:8 rdiffweb/templates/browse.html:27
#: rdiffweb/templates/history.html:17
msgid "Browse folder"
msgstr "Просмотреть директорию"
#: rdiffweb/templates/browse.html:14 rdiffweb/templates/history.html:8
#: rdiffweb/templates/locations.html:1 rdiffweb/templates/nav_bar.html:16
msgid "Repositories"
msgstr "Хранилища"
#: rdiffweb/templates/browse.html:33 rdiffweb/templates/history.html:23
msgid "View history"
msgstr "Посмотреть историю"
#: rdiffweb/templates/browse.html:43
msgid "Name"
msgstr "Имя"
#: rdiffweb/templates/browse.html:44 rdiffweb/templates/history.html:33
msgid "Size"
msgstr "Размер"
#: rdiffweb/templates/browse.html:45
msgid "Rev."
msgstr "Rev."
#: rdiffweb/templates/browse.html:111
#, python-format
msgid "Revisions (%(count)s)"
msgstr "Ревизии (%(count)s)"
#: rdiffweb/templates/browse.html:121 rdiffweb/templates/browse.html:125
msgid "Download"
msgstr "Скачать"
#: rdiffweb/templates/history.html:4
msgid "Backup history"
msgstr "История резервного копирования"
#: rdiffweb/templates/history.html:32
msgid "Date"
msgstr "Дата"
#: rdiffweb/templates/history.html:34
msgid "Result"
msgstr "Результат"
#: rdiffweb/templates/history.html:53 rdiffweb/templates/locations.html:32
msgid "In progress"
msgstr "В процессе"
#: rdiffweb/templates/history.html:55
msgid "Success"
msgstr "Успешно"
#: rdiffweb/templates/history.html:58 rdiffweb/templates/locations.html:31
msgid "Error"
msgstr "Ошибка"
#: rdiffweb/templates/locations.html:7
msgid "You don't have any repositories configured."
msgstr "Вы не имеете настроенных хранилищ."
#: rdiffweb/templates/locations.html:33
msgid "Last backup: "
msgstr "Последняя резервная копия: "
#: rdiffweb/templates/login.html:1 rdiffweb/templates/login.html:24
#: rdiffweb/templates/login.html:32
msgid "Sign in"
msgstr "Войти"
#: rdiffweb/templates/login.html:7 rdiffweb/templates/nav_bar.html:10
#: rdiffweb/templates/page_start.html:4
msgid "rdiffweb"
msgstr "rdiffweb"
#: rdiffweb/templates/login.html:9
msgid ""
"Originally developed by Josh Nisly, rdiffweb is a web interface for browsing "
"and restoring from rdiff-backup repositories."
msgstr ""
"Оригинальная разработка Josh Nisly, rdiffweb это web-интерфейс для просмотра "
"и восстановления rdiff-backup хранилищ."
#: rdiffweb/templates/login.html:13
#, python-format
msgid "version %(version)s"
msgstr "версия %(version)s"
#: rdiffweb/templates/login.html:26
msgid "Enter your username and password to log in."
msgstr "Введите ваш логин и пароль для входа."
#: rdiffweb/templates/macros.html:8 rdiffweb/templates/macros.html:15
msgid "Close"
msgstr "Закрыть"
#: rdiffweb/templates/message.html:3 rdiffweb/templates/status.html:35
msgid "Well done!"
msgstr "Отлично!"
#: rdiffweb/templates/message.html:10
msgid "Warning!"
msgstr "Внимание!"
#: rdiffweb/templates/message.html:14
msgid "Error!"
msgstr "Ошибка!"
#: rdiffweb/templates/nav_bar.html:6
msgid "Toggle navigation"
msgstr "Переключить навигацию"
#: rdiffweb/templates/nav_bar.html:17 rdiffweb/templates/status.html:1
msgid "Status"
msgstr "Статус"
#: rdiffweb/templates/nav_bar.html:18
msgid "Preferences"
msgstr "Настройки"
#: rdiffweb/templates/nav_bar.html:29
msgid "Logout"
msgstr "Выход"
#: rdiffweb/templates/nav_bar.html:32
#, python-format
msgid "Signed in as %(username)s"
msgstr "Вы вошли как %(username)s"
#: rdiffweb/templates/prefs.html:1
msgid "User Preferences"
msgstr "Настройки пользователя"
#: rdiffweb/templates/prefs.html:11
msgid "Change password"
msgstr "Изменить пароль"
#: rdiffweb/templates/prefs.html:15
msgid "Current password"
msgstr "Текущий пароль"
#: rdiffweb/templates/prefs.html:23
msgid "New password"
msgstr "Новый пароль"
#: rdiffweb/templates/prefs.html:30
msgid "Confirm new password"
msgstr "Повторите новый пароль"
#: rdiffweb/templates/prefs.html:38
msgid "Change"
msgstr "Изменить"
#: rdiffweb/templates/prefs.html:44 rdiffweb/templates/prefs.html:51
msgid "Refresh"
msgstr "Обновить"
#: rdiffweb/templates/prefs.html:48
msgid ""
"Refresh the list of repositories associated to your account. If you recently "
"add a new repository and it doesn't show, you may try to refresh the list."
msgstr ""
"Обновить список хранилищ связанных с вашим аккаунтом. Если вы, в последнее время, "
"добавили новое хранилище, но оно не отображается, вы можете попробовать обновить список."
#: rdiffweb/templates/setup.html:7
msgid "Setup rdiffweb"
msgstr "Установить rdiffweb"
#: rdiffweb/templates/setup.html:12
msgid "Congratulations, rdiffweb setup is now complete!"
msgstr "Поздравляем, настройка rdiffweb завершена!"
#: rdiffweb/templates/setup.html:13
msgid "Click here"
msgstr "Нажмите здесь"
#: rdiffweb/templates/setup.html:14
msgid "to log into rdiffweb using default administrator account:"
msgstr "войти в rdiffweb используя учетную запись администратора по умолчанию:"
#: rdiffweb/templates/setup.html:16
msgid "username: "
msgstr "логин: "
#: rdiffweb/templates/setup.html:17
msgid "password: "
msgstr "пароль: "
#: rdiffweb/templates/setup.html:28
msgid ""
"rdiffweb has not been configured, so we need to do that before logging in. "
"Configuration will only take a few minutes."
msgstr ""
"rdiffweb не был настроен, так что мы должны сделать это перед входом в систему. "
"Настройка займет всего несколько минут."
#: rdiffweb/templates/setup.html:32
msgid "Continue..."
msgstr "Продолжить..."
#: rdiffweb/templates/status.html:15
msgid "Subscribe"
msgstr "Подписаться"
#: rdiffweb/templates/status.html:25
msgid "Show all"
msgstr "Показать все"
#: rdiffweb/templates/status.html:28
msgid "Show errors only"
msgstr "Показать только ошибки"
#: rdiffweb/templates/status.html:37
msgid "There are no recent backups with errors."
msgstr "Нет резервных копий с ошибками."
#: rdiffweb/templates/status.html:39
msgid "There are no recent backups to display."
msgstr "Нет резервных копий для отображения."
#: rdiffweb/templates/status.html:51
msgid "Successful backups for "
msgstr "Успешное резервное копирование для "
#: rdiffweb/templates/status.html:55
msgid "The following backups have completed successfully: "
msgstr "Следующие резервные копии успешно созданы: "
#: rdiffweb/templates/status.html:73
msgid "Backup completed with errors:"
msgstr "Резервное копирование завершено с ошибками:"
#: rdiffweb/templates/status.html:82
msgid "Backup size: "
msgstr "Размер резервной копии: "
#: rdiffweb/templates/status.html:89
msgid "The following repositories contain errors: "
msgstr "Следующие хранилища содержат ошибки: "
rdiffweb-v0.7.1/rdiffweb/main.py 0000775 0000000 0000000 00000020022 12572375337 0016600 0 ustar 00root root 0000000 0000000 #!/usr/bin/python
# -*- coding: utf-8 -*-
# rdiffweb, A web interface to rdiff-backup repositories
# Copyright (C) 2014 rdiffweb contributors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
import cherrypy
import getopt
import os
import sys
import threading
import logging
import inspect
import i18n
import rdw_helpers
import rdw_config
import rdw_spider_repos
import email_notification
import filter_authentication
import filter_setup
import page_admin
import page_browse
import page_history
import page_locations
import page_restore
import page_setup
import page_status
import page_prefs
import page_login
import page_logout
import page_main
# Define logger for this module
logger = logging.getLogger(__name__)
def start():
"""Start rdiffweb deamon."""
# Parse command line options
debug = False
autoReload = False
pidFile = ""
logFile = ""
logAccessFile = ""
opts, extraparams = getopt.getopt(sys.argv[1:],
'vdr',
['debug',
'log-file=',
'log-access-file=',
'pid-file=',
'background',
'autoreload'])
for option, value in opts:
if option in ['-d', '--debug']:
debug = True
if option in ['-r', '--autoreload']:
autoReload = True
elif option in ['--log-file']:
logFile = value
elif option in ['--log-access-file']:
logAccessFile = value
elif option in ['--pid-file']:
pidFile = value
elif option in ['--background']:
rdw_helpers.daemonize()
# Wait to write out to the pidfile until after we've (possibly) been
# daemonized
if pidFile:
# Write our process id to specified file, so we can be killed later
open(pidFile, 'a').write(str(os.getpid()) + "\n")
# Configure logging
logformat = '[%(asctime)s][%(levelname)-7s][%(name)s] %(message)s'
level = logging.DEBUG if debug else logging.INFO
if logFile:
logging.basicConfig(filename=logFile, level=level, format=logformat)
else:
logging.basicConfig(level=level, format=logformat)
if logAccessFile:
logging.root.handlers[0].addFilter(NotFilter("cherrypy.access"))
logging.root.handlers[0].addFilter(ContextFilter())
# Check if configuration file exists
config_file = rdw_config.get_config_file()
if not os.access(config_file, os.F_OK):
logger.warn("configuration file is not accessible: %s" % config_file)
# Get configuration
serverHost = rdw_config.get_config("ServerHost", default="0.0.0.0")
try:
serverPort = int(rdw_config.get_config("ServerPort", default="8080"))
except ValueError:
logger.error("ServerPort should be a port number")
sys.exit(1)
sslCertificate = rdw_config.get_config("SslCertificate")
sslPrivateKey = rdw_config.get_config("SslPrivateKey")
# Define the locales directory
localesdir = os.path.split(inspect.getfile(inspect.currentframe()))[0]
localesdir = os.path.realpath(os.path.abspath(localesdir))
localesdir = os.path.join(localesdir, 'locales/')
environment = "development"
if not debug:
environment = "production"
global_settings = {
'tools.encode.on': True,
'tools.encode.encoding': 'utf-8',
'tools.gzip.on': True,
'tools.sessions.on': True,
'tools.authform.on': True,
'autoreload.on': autoReload,
'server.socket_host': serverHost,
'server.socket_port': serverPort,
'server.log_file': logFile,
'server.ssl_certificate': sslCertificate,
'server.ssl_private_key': sslPrivateKey,
'log.screen': False,
'log.access_file': logAccessFile,
'server.environment': environment,
}
page_settings = {
'/': {
'tools.authform.on': True,
'tools.setup.on': True,
'tools.i18n.on': True,
'tools.i18n.default': 'en_US',
'tools.i18n.mo_dir': localesdir,
'tools.i18n.domain': 'messages'
},
'/login': {
'tools.authform.on': False,
},
'/status/feed': {
'tools.authform.on': False,
'tools.authbasic.on': True,
'tools.authbasic.checkpassword': page_login.rdiffLoginPage().checkpassword
},
'/static': {
'tools.staticdir.on': True,
'tools.staticdir.root': os.path.abspath(os.path.dirname(__file__)),
'tools.staticdir.dir': "static",
'tools.authform.on': False,
'tools.setup.on': False,
},
'/setup': {
'tools.setup.on': False,
'tools.authform.on': False,
'tools.sessions.on': False,
}
}
if rdw_config.get_config("SessionStorage").lower() == "disk":
sessionDir = rdw_config.get_config("SessionDir")
if (os.path.exists(sessionDir)
and os.path.isdir(sessionDir)
and os.access(sessionDir, os.W_OK)):
logger.info("Setting session mode to disk in directory %s" %
sessionDir)
global_settings['tools.sessions.on'] = True
global_settings['tools.sessions.storage_type'] = 'file'
global_settings['tools.sessions.storage_path'] = sessionDir
cherrypy.config.update(global_settings)
root = page_locations.rdiffLocationsPage()
root.setup = page_setup.rdiffSetupPage()
root.login = page_login.rdiffLoginPage()
root.logout = page_logout.rdiffLogoutPage()
root.browse = page_browse.rdiffBrowsePage()
root.restore = page_restore.rdiffRestorePage()
root.history = page_history.rdiffHistoryPage()
root.status = page_status.rdiffStatusPage()
root.admin = page_admin.rdiffAdminPage()
root.prefs = page_prefs.rdiffPreferencesPage()
# Start repo spider thread
if not debug:
killEvent = threading.Event()
rdw_spider_repos.startRepoSpiderThread(killEvent)
email_notification.startEmailNotificationThread(killEvent)
if hasattr(cherrypy.engine, 'subscribe'): # CherryPy >= 3.1
cherrypy.engine.subscribe('stop', lambda: killEvent.set())
else:
cherrypy.engine.on_stop_engine_list.append(lambda: killEvent.set()) # @UndefinedVariable
# Start web server
cherrypy.quickstart(root, config=page_settings)
class NotFilter(logging.Filter):
"""
Negate logging filter
"""
def __init__(self, name=''):
self.name = name
self.nlen = len(name)
def filter(self, record):
if self.nlen == 0:
return 0
elif self.name == record.name:
return 0
elif record.name.find(self.name, 0, self.nlen) != 0:
return 1
return not (record.name[self.nlen] == ".")
class ContextFilter(logging.Filter):
"""
This is a filter which injects contextual information into the log.
"""
def filter(self, record):
try:
if hasattr(cherrypy, 'serving'):
request = cherrypy.serving.request
remote = request.remote
record.ip = remote.name or remote.ip
if hasattr(cherrypy, 'session'):
record.user = cherrypy.session['username']
except:
record.ip = "unknown"
record.user = "unknown"
return True
rdiffweb-v0.7.1/rdiffweb/page_admin.py 0000664 0000000 0000000 00000016663 12572375337 0017755 0 ustar 00root root 0000000 0000000 #!/usr/bin/python
# -*- coding: utf-8 -*-
# rdiffweb, A web interface to rdiff-backup repositories
# Copyright (C) 2014 rdiffweb contributors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
from __future__ import unicode_literals
import page_main
import cherrypy
import logging
import os
import rdw_spider_repos
from i18n import ugettext as _
# Define the logger
logger = logging.getLogger(__name__)
class rdiffAdminPage(page_main.rdiffPage):
"""Administration pages. Allow to manage users database."""
def _check_user_exists(self, username):
"""Raise an exception if the user doesn't exists."""
if not self.getUserDB().exists(username):
raise ValueError("The user does not exist.")
def _check_user_root_dir(self, directory):
"""Raised an exception if the directory is not valid."""
if not os.access(directory, os.F_OK):
raise ValueError("User root directory [%s] is not accessible!"
% directory)
if not os.path.isdir(directory):
raise ValueError("User root directory [%s] is not accessible!"
% directory)
@cherrypy.expose
def index(self):
# Check if user is an administrator
if not self._user_is_admin():
return self._writeErrorPage(_("Access denied."))
params = {}
try:
users = self.getUserDB().list()
repos = set()
for user in users:
for repo in self.getUserDB().get_repos(user):
repos.add(repo)
params = {"user_count": len(users),
"repo_count": len(repos)}
except:
logger.exception("fail to get stats", **params)
return self._writeErrorPage(_("Can't get admin information."))
return self._writePage("admin.html", **params)
@cherrypy.expose
def users(self, userfilter=u"", usersearch=u"", action=u"", username=u"",
email=u"", password=u"", user_root=u"", is_admin=u""):
# Check if user is an administrator
if not self._user_is_admin():
return self._writeErrorPage(_("Access denied."))
assert isinstance(userfilter, unicode)
assert isinstance(usersearch, unicode)
# If we're just showing the initial page, just do that
params = {}
if self._is_submit():
try:
params = self._users_handle_action(action, username,
email, password, user_root,
is_admin)
except ValueError as e:
logger.exception("unknown error processing action")
params['error'] = unicode(e)
except Exception as e:
logger.exception("unknown error processing action")
params['error'] = "Fail to execute operation."
# Get page parameters
try:
params.update(
self._users_get_params_for_page(userfilter, usersearch))
except:
logger.exception("fail to get user list")
return self._writeErrorPage(_("Can't get user list."))
# Build users page
return self._writePage("admin_users.html", **params)
def _users_get_params_for_page(self, userfilter, usersearch):
usernames = self.getUserDB().list()
users = [{"username": username,
"email": self.getUserDB().get_email(username),
"is_admin": self.getUserDB().is_admin(username),
"user_root": self.getUserDB().get_root_dir(username)
} for username in usernames]
# Apply the filters.
filtered_users = users
if userfilter == "admins":
filtered_users = filter(lambda x: x["is_admin"],
filtered_users)
# Apply the search.
if usersearch:
filtered_users = filter(lambda x: usersearch in x["username"]
or usersearch in x["email"],
filtered_users)
return {"ldap_enabled": self.getUserDB().is_ldap(),
"userfilter": userfilter,
"usersearch": usersearch,
"filtered_users": filtered_users,
"users": users}
def _users_handle_action(self, action, username, email, password,
user_root, is_admin):
success = ""
warning = ""
# We need to change values. Change them, then give back that main
# page again, with a message
if username == self.getUsername():
# Don't allow the user to changes it's "admin" state.
is_admin = self.getUserDB().is_admin(username)
# Fork the behaviour according to the action.
if action == "edit":
self._check_user_exists(username)
logger.info("updating user info")
if password:
self.getUserDB().set_password(username, None, password)
self.getUserDB().set_info(username, user_root, is_admin)
self.getUserDB().set_email(username, email)
success = _("User information modified successfully.")
# Check and update user directory
try:
self._check_user_root_dir(user_root)
rdw_spider_repos.findReposForUser(username,
self.getUserDB())
except ValueError as e:
success = ""
warning = unicode(e)
elif action == "add":
if self.getUserDB().exists(username):
raise ValueError("The specified user already exists.")
elif username == "":
raise ValueError("The username is invalid.")
logger.info("adding user [%s]" % username)
self.getUserDB().add_user(username)
self.getUserDB().set_password(username, None, password)
self.getUserDB().set_info(username, user_root, is_admin)
self.getUserDB().set_email(username, email)
# Check and update user directory
try:
self._check_user_root_dir(user_root)
rdw_spider_repos.findReposForUser(username,
self.getUserDB())
except ValueError as e:
warning = unicode(e)
success = "User added successfully."
if action == "delete":
self._check_user_exists(username)
if username == self.getUsername():
raise ValueError("You cannot remove your own account!.")
logger.info("deleting user [%s]" % username)
self.getUserDB().delete_user(username)
success = "User account removed."
# Return messages
return {'success': success,
'warning': warning}
rdiffweb-v0.7.1/rdiffweb/page_browse.py 0000664 0000000 0000000 00000007645 12572375337 0020166 0 ustar 00root root 0000000 0000000 #!/usr/bin/python
# -*- coding: utf-8 -*-
# rdiffweb, A web interface to rdiff-backup repositories
# Copyright (C) 2014 rdiffweb contributors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
from __future__ import unicode_literals
import cherrypy
import logging
import os
import page_main
import librdiff
from i18n import ugettext as _
from rdw_helpers import decode_s, unquote_url
# Define the logger
logger = logging.getLogger(__name__)
class rdiffBrowsePage(page_main.rdiffPage):
"""This contoller provide a browser view to the user. It displays file in a
repository."""
def _cp_dispatch(self, vpath):
"""Used to handle permalink URL.
ref http://cherrypy.readthedocs.org/en/latest/advanced.html"""
# Notice vpath contains bytes.
if len(vpath) > 0:
# /the/full/path/
path = []
while len(vpath) > 0:
path.append(unquote_url(vpath.pop(0)))
cherrypy.request.params['path_b'] = b"/".join(path)
return self
return vpath
@cherrypy.expose
def index(self, path_b=b"", restore=""):
assert isinstance(path_b, str)
assert isinstance(restore, unicode)
logger.debug("browsing [%s]" % decode_s(path_b, 'replace'))
# Check user access to the given repo & path
try:
(repo_obj, path_obj) = self.validate_user_path(path_b)
except librdiff.FileError as e:
logger.exception("invalid user path")
return self._writeErrorPage(unicode(e))
# Build the parameters
try:
parms = self._get_parms_for_page(repo_obj,
path_obj,
restore == b"T")
except librdiff.FileError as e:
logger.exception("can't create pare params")
return self._writeErrorPage(unicode(e))
return self._writePage("browse.html", **parms)
def _get_parms_for_page(self, repo_obj, path_obj, restore):
assert isinstance(repo_obj, librdiff.RdiffRepo)
assert isinstance(path_obj, librdiff.RdiffPath)
# Build "parent directories" links
parents = []
parents.append({"path": b"", "name": repo_obj.display_name})
parent_path_b = b""
for part_b in path_obj.path.split(b"/"):
if part_b:
parent_path_b = os.path.join(parent_path_b, part_b)
display_name = decode_s(repo_obj.unquote(part_b), 'replace')
parents.append({"path": parent_path_b,
"name": display_name})
# Set up warning about in-progress backups, if necessary
warning = ""
if repo_obj.in_progress:
warning = _("""A backup is currently in progress to this repository. The displayed data may be inconsistent.""")
dir_entries = []
restore_dates = []
if restore:
restore_dates = path_obj.restore_dates
else:
# Get list of actual directory entries
dir_entries = path_obj.dir_entries
return {"repo_name": repo_obj.display_name,
"repo_path": repo_obj.path,
"path": path_obj.path,
"dir_entries": dir_entries,
"parents": parents,
"restore_dates": restore_dates,
"warning": warning}
rdiffweb-v0.7.1/rdiffweb/page_history.py 0000664 0000000 0000000 00000004731 12572375337 0020357 0 ustar 00root root 0000000 0000000 #!/usr/bin/python
# -*- coding: utf-8 -*-
# rdiffweb, A web interface to rdiff-backup repositories
# Copyright (C) 2014 rdiffweb contributors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
from __future__ import unicode_literals
import cherrypy
import logging
import librdiff
import page_main
import rdw_helpers
from rdw_helpers import decode_s, unquote_url
# Define the logger
logger = logging.getLogger(__name__)
class rdiffHistoryPage(page_main.rdiffPage):
def _cp_dispatch(self, vpath):
"""Used to handle permalink URL.
ref http://cherrypy.readthedocs.org/en/latest/advanced.html"""
# Notice vpath contains bytes.
if len(vpath) > 0:
# /the/full/path/
path = []
while len(vpath) > 0:
path.append(unquote_url(vpath.pop(0)))
cherrypy.request.params['path_b'] = b"/".join(path)
return self
return vpath
@cherrypy.expose
def index(self, path_b=b""):
assert isinstance(path_b, str)
logger.debug("history [%s]" % decode_s(path_b, 'replace'))
try:
(repo_obj, path_obj) = self.validate_user_path(path_b)
except librdiff.FileError as e:
logger.exception("invalid user path")
return self._writeErrorPage(unicode(e))
try:
parms = self._get_parms_for_page(repo_obj)
except librdiff.FileError:
logger.exception("can't create page params")
return self._writeErrorPage(unicode(e))
return self._writePage("history.html", **parms)
def _get_parms_for_page(self, repo_obj):
assert isinstance(repo_obj, librdiff.RdiffRepo)
# Get history for the repo.
history_entries = repo_obj.get_history_entries()
return {"repo_name": repo_obj.display_name,
"repo_path": repo_obj.path,
"history_entries": history_entries}
rdiffweb-v0.7.1/rdiffweb/page_locations.py 0000664 0000000 0000000 00000004757 12572375337 0020661 0 ustar 00root root 0000000 0000000 #!/usr/bin/python
# -*- coding: utf-8 -*-
# rdiffweb, A web interface to rdiff-backup repositories
# Copyright (C) 2014 rdiffweb contributors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
from __future__ import unicode_literals
import cherrypy
import logging
import librdiff
import page_main
from rdw_helpers import encode_s
# Define the logger
logger = logging.getLogger(__name__)
class rdiffLocationsPage(page_main.rdiffPage):
"""Shows the repository page. Will show all available destination
backup directories. This is the root (/) page"""
@cherrypy.expose
def index(self):
logger.debug("browsing repositories")
return self._writePage("locations.html", **self._get_parms_for_page())
def _get_parms_for_page(self):
user_root = self.getUserDB().get_root_dir(self.getUsername())
user_root_b = encode_s(user_root)
user_repos = self.getUserDB().get_repos(self.getUsername())
repoList = []
for user_repo in user_repos:
try:
# Get reference to a repo object
repo_obj = librdiff.RdiffRepo(user_root_b, encode_s(user_repo))
path = repo_obj.path
name = repo_obj.display_name
in_progress = repo_obj.in_progress
last_backup_date = repo_obj.last_backup_date
failed = False
except librdiff.FileError:
logging.exception("invalid user path %s" % user_repo)
path = encode_s(user_repo)
name = user_repo
in_progress = False
last_backup_date = 0
failed = True
repoList.append({"path": path,
"name": name,
"last_backup_date": last_backup_date,
'in_progress': in_progress,
'failed': failed})
return {"repos": repoList}
rdiffweb-v0.7.1/rdiffweb/page_login.py 0000664 0000000 0000000 00000004446 12572375337 0017771 0 ustar 00root root 0000000 0000000 #!/usr/bin/python
# -*- coding: utf-8 -*-
# rdiffweb, A web interface to rdiff-backup repositories
# Copyright (C) 2014 rdiffweb contributors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
from __future__ import unicode_literals
import cherrypy
import logging
import page_main
from rdw_helpers import quote_url
# Define the logger
logger = logging.getLogger(__name__)
class rdiffLoginPage(page_main.rdiffPage):
@cherrypy.expose
def index(self, redirect=u"", login=u"", password=""):
assert isinstance(redirect, unicode)
assert isinstance(login, unicode)
assert isinstance(password, unicode)
# when parameters are sent using post, redirect URL doesn't need to be
# quoted.
if not self._is_submit():
parts = redirect.partition("?")
redirect = quote_url(parts[0])
if parts[2]:
redirect += "?"
redirect += quote_url(parts[2], safe="/=&")
params = {'redirect': redirect,
'login': login}
if self._is_submit():
# check for login credentials
logger.info("check credentials for [%s]" % login)
errorMsg = self.checkpassword(login, password)
if not errorMsg:
self.setUsername(login)
if not redirect or redirect.startswith("/login/"):
redirect = "/"
# The redirect url was unquoted by cherrypy, quote the
# url again.
logger.info("redirect user to %s" % redirect)
raise cherrypy.HTTPRedirect(redirect)
# update form values
params["warning"] = errorMsg
return self._writePage("login.html", **params)
rdiffweb-v0.7.1/rdiffweb/page_logout.py 0000664 0000000 0000000 00000002257 12572375337 0020170 0 ustar 00root root 0000000 0000000 #!/usr/bin/python
# -*- coding: utf-8 -*-
# rdiffweb, A web interface to rdiff-backup repositories
# Copyright (C) 2014 rdiffweb contributors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
from __future__ import unicode_literals
import cherrypy
import logging
import page_main
# Define the logger
logger = logging.getLogger(__name__)
class rdiffLogoutPage(page_main.rdiffPage):
@cherrypy.expose
def index(self):
# Empty the session info
self.setUsername(None)
cherrypy.request.user = None
# Redirect user to /login
raise cherrypy.HTTPRedirect("/login/")
rdiffweb-v0.7.1/rdiffweb/page_main.py 0000664 0000000 0000000 00000011661 12572375337 0017602 0 ustar 00root root 0000000 0000000 #!/usr/bin/python
# -*- coding: utf-8 -*-
# rdiffweb, A web interface to rdiff-backup repositories
# Copyright (C) 2014 rdiffweb contributors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
from __future__ import unicode_literals
import cherrypy
import librdiff
import logging
import os.path
import db
import rdw_templating
from rdw_helpers import encode_s, decode_s
# Define the logger
logger = logging.getLogger(__name__)
class rdiffPage:
# HELPER FUNCTIONS #
def validate_user_path(self, path_b):
'''Takes a path relative to the user's root dir and validates that it
is valid and within the user's root'''
assert isinstance(path_b, str)
path_b = path_b.strip(b"/")
# NOTE: a blank path is allowed, since the user root directory might be
# a repository.
logger.debug("check user access to path [%s]" %
decode_s(path_b, 'replace'))
# Get reference to user repos
user_repos = self.getUserDB().get_repos(self.getUsername())
# Check if any of the repos matches the given path.
user_repos_matches = filter(
lambda x: path_b.startswith(encode_s(x).strip(b"/")),
user_repos)
if not user_repos_matches:
# No repo matches
logger.error("user doesn't have access to [%s]" %
decode_s(path_b, 'replace'))
raise librdiff.AccessDeniedError
repo_b = encode_s(user_repos_matches[0]).strip(b"/")
# Get reference to user_root
user_root = self.getUserDB().get_root_dir(self.getUsername())
user_root_b = encode_s(user_root)
# Check path vs real path value
full_path_b = os.path.join(user_root_b, path_b).rstrip(b"/")
real_path_b = os.path.realpath(full_path_b).rstrip(b"/")
if full_path_b != real_path_b:
# We can safely assume the realpath contains a symbolic link. If
# the symbolic link is valid, we display the content of the "real"
# path.
if real_path_b.startswith(os.path.join(user_root_b, repo_b)):
path_b = os.path.relpath(real_path_b, user_root_b)
else:
logger.warn("access is denied [%s] vs [%s]" % (
decode_s(full_path_b, 'replace'),
decode_s(real_path_b, 'replace')))
raise librdiff.AccessDeniedError
# Get reference to the repository (this ensure the repository does
# exists and is valid.)
repo_obj = librdiff.RdiffRepo(user_root_b, repo_b)
# Get reference to the path.
path_b = path_b[len(repo_b):]
path_obj = repo_obj.get_path(path_b)
return (repo_obj, path_obj)
def getUserDB(self):
"""Return the user database."""
return db.userDB().get_userdb_module()
# PAGE HELPER FUNCTIONS #
def _is_submit(self):
return cherrypy.request.method == "POST"
def _writeErrorPage(self, error):
assert isinstance(error, unicode)
return self._writePage("error.html", error=error)
def _writePage(self, template_name, **kwargs):
"""Used to generate a standard html page using the given template.
This method should be used by subclasses to provide default template
value."""
parms = {"is_login": True,
"is_admin": self._user_is_admin(),
"username": self.getUsername()}
parms.update(kwargs)
return rdw_templating.compile_template(template_name, **parms)
# SESSION INFORMATION #
def checkpassword(self, username, password):
# Check credential using local database.
if self.getUserDB().are_valid_credentials(username, password):
cherrypy.session['username'] = username # @UndefinedVariable
return None
return "Invalid username or password."
def getUsername(self):
try:
return cherrypy.session['username'] # @UndefinedVariable
except:
return None
def setUsername(self, username):
"""Store the username in the user session."""
cherrypy.session['username'] = username # @UndefinedVariable
def _user_is_admin(self):
"""Check if current user is administrator. Return True or False."""
if self.getUsername():
return self.getUserDB().is_admin(self.getUsername())
return False
rdiffweb-v0.7.1/rdiffweb/page_prefs.py 0000664 0000000 0000000 00000012457 12572375337 0020001 0 ustar 00root root 0000000 0000000 #!/usr/bin/python
# -*- coding: utf-8 -*-
# rdiffweb, A web interface to rdiff-backup repositories
# Copyright (C) 2014 rdiffweb contributors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
from __future__ import unicode_literals
import cherrypy
import logging
import page_main
import rdw_spider_repos
import email_notification
# Define the logger
logger = logging.getLogger(__name__)
class rdiffPreferencesPage(page_main.rdiffPage):
sampleEmail = 'joe@example.com'
@cherrypy.expose
def index(self, action=u"", current=u"", new=u"", confirm=u""):
params = {}
# Process the parameters.
if self._is_submit():
try:
if action == "set_password":
params = self._set_password(current, new, confirm)
elif action == "update_repos":
params = self._update_repos()
elif action == 'set_notifications':
params = self._setNotifications()
except ValueError as e:
params['error'] = unicode(e)
except Exception as e:
logger.exception("unknown error processing action")
params['error'] = unicode(e)
# Get page params
try:
params.update(self._get_parms_for_page())
except Exception as e:
params['error'] = unicode(e)
return self._writePage("prefs.html", **params)
def _set_password(self, old_password, new_password, confirm_password):
# Check if current database support it.
if not self.getUserDB().is_modifiable():
return {'error': """Password changing is not
supported with the active user
database."""}
# Check if confirmation is valid.
if new_password != confirm_password:
return {'error': "The passwords do not match."}
self.getUserDB().set_password(self.getUsername(),
old_password,
new_password)
return {'success': "Password updated successfully."}
def _update_repos(self):
rdw_spider_repos.findReposForUser(self.getUsername(), self.getUserDB())
return {'success': """Successfully updated repositories."""}
def _setNotifications(self, parms):
if not self.getUserDB().is_modifiable():
return self._writePrefsPage(error="""Email notification is not
supported with the active user
database.""")
repos = self.getUserDB().get_repos(self.getUsername())
for parmName in parms.keys():
if parmName == "userEmail":
if parms[parmName] == self.sampleEmail:
parms[parmName] = ''
self.getUserDB().set_email(
self.getUsername(), parms[parmName])
if parmName.endswith("numDays"):
backupName = parmName[:-7]
if backupName in repos:
if parms[parmName] == "Don't notify":
maxDays = 0
else:
maxDays = int(parms[parmName][0])
self.getUserDB().set_repo_maxage(
self.getUsername(), backupName, maxDays)
return self._writePrefsPage(success="""Successfully changed
notification settings.""")
def _get_parms_for_page(self):
email = self.getUserDB().get_email(self.getUsername())
parms = {
"userEmail": email,
"notificationsEnabled": False,
"backups": [],
"sampleEmail": self.sampleEmail
}
if email_notification.emailNotifier().notificationsEnabled():
repos = self.getUserDB().get_repos(self.getUsername())
backups = []
for repo in repos:
maxAge = self.getUserDB().get_repo_maxage(
self.getUsername(), repo)
notifyOptions = []
for i in range(0, 8):
notifyStr = "Don't notify"
if i == 1:
notifyStr = "1 day"
elif i > 1:
notifyStr = str(i) + " days"
selectedStr = ""
if i == maxAge:
selectedStr = "selected"
notifyOptions.append(
{"optionStr": notifyStr, "selectedStr": selectedStr})
backups.append(
{"backupName": repo, "notifyOptions": notifyOptions})
parms.update({"notificationsEnabled": True, "backups": backups})
return parms
rdiffweb-v0.7.1/rdiffweb/page_restore.py 0000664 0000000 0000000 00000011504 12572375337 0020335 0 ustar 00root root 0000000 0000000 #!/usr/bin/python
# -*- coding: utf-8 -*-
# rdiffweb, A web interface to rdiff-backup repositories
# Copyright (C) 2014 rdiffweb contributors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
from __future__ import unicode_literals
import cherrypy
import logging
import os
from i18n import ugettext as _
from cherrypy.lib.static import serve_file
import librdiff
import page_main
import rdw_helpers
from rdw_helpers import decode_s, unquote_url
# Define the logger
logger = logging.getLogger(__name__)
def autodelete():
"""Register an handler to delete the restored files when the HTTP
request is ending."""
if not hasattr(cherrypy.request, "_autodelete_dir"):
return
autodelete_dir = cherrypy.request._autodelete_dir
logger.info("deleting temporary folder [%s]" %
decode_s(autodelete_dir, 'replace'))
# Check if path exists
if not os.access(autodelete_dir, os.F_OK):
logger.info("temporary folder [%s] doesn't exists" %
decode_s(autodelete_dir, 'replace'))
return
if not os.path.isdir(autodelete_dir):
autodelete_dir = os.path.dirname(autodelete_dir)
rdw_helpers.remove_dir(autodelete_dir)
cherrypy.tools.autodelete = cherrypy.Tool('on_end_request', autodelete)
class rdiffRestorePage(page_main.rdiffPage):
_cp_config = {"response.stream": True, "response.timeout": 3000}
def _cp_dispatch(self, vpath):
"""Used to handle permalink URL.
ref http://cherrypy.readthedocs.org/en/latest/advanced.html"""
# Notice vpath contains bytes.
if len(vpath) > 0:
# /the/full/path/
path = []
while len(vpath) > 0:
path.append(unquote_url(vpath.pop(0)))
cherrypy.request.params['path_b'] = b"/".join(path)
return self
return vpath
@cherrypy.expose
@cherrypy.tools.autodelete()
@cherrypy.tools.decode(default_encoding='Latin-1')
def index(self, path_b=b"", date="", usetar=""):
assert isinstance(path_b, str)
assert isinstance(date, unicode)
assert isinstance(usetar, unicode)
logger.debug("restoring [%s][%s]" % (decode_s(path_b, 'replace'),
date))
# The path_b wont have leading and trailing "/".
(path_b, file_b) = os.path.split(path_b)
if not path_b:
path_b = file_b
file_b = b""
# Check user access to repo / path.
try:
(repo_obj, path_obj) = self.validate_user_path(path_b)
except librdiff.FileError as e:
logger.exception("invalid user path")
return self._writeErrorPage(unicode(e))
# Get the restore date
try:
restore_date = rdw_helpers.rdwTime()
restore_date.initFromInt(int(date))
except:
logger.warn("invalid date %s" % date)
return self._writeErrorPage(_("Invalid date."))
try:
# Get if backup in progress
if repo_obj.in_progress:
return self._writeErrorPage(_("""A backup is currently in progress to this repository. Restores are disabled until this backup is complete."""))
# Restore the file
file_path_b = path_obj.restore(file_b, restore_date, usetar != "T")
except librdiff.FileError as e:
logger.exception("fail to restore")
return self._writeErrorPage(unicode(e))
except ValueError:
logger.exception("fail to restore")
return self._writeErrorPage(_("Fail to restore."))
# The restored file path need to be deleted when the user is finish
# downloading. The auto-delete tool, will do it if we give him a file
# to delete.
cherrypy.request._autodelete_dir = file_path_b
# The file name return by rdiff-backup is in bytes. We do not process
# it. Cherrypy seams to handle it any weird encoding from this point.
logger.info("restored file [%s]" % decode_s(file_path_b, 'replace'))
filename = os.path.basename(file_path_b)
# Escape quotes in filename
filename = filename.replace(b"\"", b"\\\"")
return serve_file(file_path_b, None, disposition=b"attachment",
name=filename)
rdiffweb-v0.7.1/rdiffweb/page_setup.py 0000664 0000000 0000000 00000010232 12572375337 0020007 0 ustar 00root root 0000000 0000000 #!/usr/bin/python
# -*- coding: utf-8 -*-
# rdiffweb, A web interface to rdiff-backup repositories
# Copyright (C) 2014 rdiffweb contributors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
from __future__ import unicode_literals
import cherrypy
import os
import stat
import logging
import page_main
# Define the logger
logger = logging.getLogger(__name__)
class rdiffSetupPage(page_main.rdiffPage):
"""
Helps the user through initial rdiffweb setup.
This page is displayed with rdiffweb is not yet configured.
"""
@cherrypy.expose
def index(self, **kwargs):
setup_enabled = True
warning = ""
message = ""
error = ""
# Check if users already exists
try:
if len(self.getUserDB().list()) > 0:
setup_enabled = False
message = "rdiffweb is already configured !"
except:
logger.exception("fail to get users")
setup_enabled = False
warning = "can't determine if rdiffweb is configured !"
# Check if configuration file exists
try:
self._ensure_config_file_exists()
except:
setup_enabled = False
warning = """rdiffweb doesn't have read-write access to the
configuration file. You may try to change the permissions
of this file."""
# if no post data, return plain page.
if not setup_enabled or not self._is_submit():
return self._writePage("setup.html",
setup_enabled=setup_enabled,
message=message,
warning=warning,
error=error)
logger.info("validating root password")
completed = False
try:
# Get parameters
admin_username = "admin"
admin_password = "admin123"
admin_root = "/var/backups/"
# Execute the setup
self._set_admin_user(admin_username, admin_password)
self._set_admin_root(admin_username, admin_root)
logger.info("setup completed")
completed = True
except ValueError as e:
logger.exception("fail to complete setup")
error = "Error! " + str(e)
return self._writePage("setup.html",
setup_enabled=setup_enabled,
completed=completed,
admin_username=admin_username,
admin_password=admin_password,
message=message,
warning=warning,
error=error)
def _set_admin_user(self, username, password):
# Create the user
self.getUserDB().add_user(username)
self.getUserDB().set_password(username, None, password)
def _set_admin_root(self, username, userRoot):
# Sets admin root
self.getUserDB().set_info(username, userRoot, True)
def _ensure_config_file_exists(self):
"""Try to access or create the configuration file. It raised an
exception if the configuration file is not accessible."""
try:
if not os.path.exists("/etc/rdiffweb"):
os.mkdir("/etc/rdiffweb", stat.S_IRWXU)
if not os.path.exists("/etc/rdiffweb/rdw.conf"):
open("/etc/rdiffweb/rdw.conf", "a").close()
os.chmod("/etc/rdiffweb/rdw.conf", stat.S_IRWXU)
except OSError as error:
raise ValueError(str(error))
rdiffweb-v0.7.1/rdiffweb/page_status.py 0000664 0000000 0000000 00000020165 12572375337 0020200 0 ustar 00root root 0000000 0000000 #!/usr/bin/python
# -*- coding: utf-8 -*-
# rdiffweb, A web interface to rdiff-backup repositories
# Copyright (C) 2014 rdiffweb contributors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
from __future__ import unicode_literals
import cherrypy
import logging
import page_main
import librdiff
import rdw_helpers
from rdw_helpers import encode_s, decode_s, unquote_url
# Define the logger
logger = logging.getLogger(__name__)
class rdiffStatusPage(page_main.rdiffPage):
def _cp_dispatch(self, vpath):
"""Used to handle permalink URL.
reference http://cherrypy.readthedocs.org/en/latest/advanced.html"""
# Notice path contains bytes.
if len(vpath) > 0:
# /the/full/path/
path = []
while len(vpath) > 0:
path.append(unquote_url(vpath.pop(0)))
cherrypy.request.params['path_b'] = b"/".join(path)
return self
return vpath
@cherrypy.expose
def index(self, failures=""):
userMessages = self._get_recent_user_messages(failures != "")
return self._compileStatusPageTemplate(True, userMessages,
failures != "")
@cherrypy.expose
def entry(self, path_b=b"", date=""):
assert isinstance(path_b, str)
assert isinstance(date, unicode)
# Validate date
try:
entry_time = rdw_helpers.rdwTime()
entry_time.initFromInt(int(date))
except ValueError:
logger.exception("invalid date")
return self._writeErrorPage(_("Invalid date."))
if not path_b:
userMessages = self._get_user_messages_for_day(entry_time)
else:
# Validate repo parameter
try:
(repo_obj, path_obj) = self.validate_user_path(path_b)
except librdiff.FileError as e:
logger.exception("invalid user path")
return self._writeErrorPage(unicode(e))
userMessages = self._getUserMessages(
[repo_obj.path], False, True, entry_time, entry_time)
return self._compileStatusPageTemplate(False, userMessages, False)
@cherrypy.expose
def feed(self, failures=""):
cherrypy.response.headers["Content-Type"] = "text/xml"
userMessages = self._get_recent_user_messages(failures != "")
statusUrl = self._buildAbsolutePageUrl(failures != "")
return self._writePage("status.xml",
link=statusUrl,
messages=userMessages)
def _compileStatusPageTemplate(self, isMainPage, messages, failuresOnly):
if isMainPage:
feedLink = self._buildStatusFeedUrl(failuresOnly)
feedTitle = "Backup status for " + self.getUsername()
else:
feedLink = ""
feedTitle = ""
return self._writePage("status.html",
messages=messages,
feedLink=feedLink,
failuresOnly=failuresOnly,
rssUrl=feedLink,
rssTitle=feedTitle,
isEntry=not isMainPage)
def _buildAbsolutePageUrl(self, failuresOnly):
url = cherrypy.request.base + "/status/"
if failuresOnly:
url = url + "?failures=T"
return url
def _buildStatusFeedUrl(self, failuresOnly):
url = "/status/feed"
if failuresOnly:
url = url + "?failures=T"
return url
def _get_user_messages_for_day(self, date):
userRepos = self.getUserDB().get_repos(self.getUsername())
# Set the start and end time to be the start and end of the day,
# respectively, to get all entries for that day
startTime = rdw_helpers.rdwTime()
startTime.timeInSeconds = date.timeInSeconds
startTime.tzOffset = date.tzOffset
startTime.setTime(0, 0, 0)
endTime = rdw_helpers.rdwTime()
endTime.timeInSeconds = date.timeInSeconds
endTime.tzOffset = date.tzOffset
endTime.setTime(23, 59, 59)
return self._getUserMessages(userRepos, True, False,
startTime, endTime)
def _get_recent_user_messages(self, failuresOnly):
user_repos = self.getUserDB().get_repos(self.getUsername())
asOfDate = rdw_helpers.rdwTime()
asOfDate.initFromMidnightUTC(-5)
return self._getUserMessages(user_repos, not failuresOnly, True,
asOfDate, None)
def _getUserMessages(self,
repos,
includeSuccess,
includeFailure,
earliest_date,
latest_date):
user_root = self.getUserDB().get_root_dir(self.getUsername())
user_root_b = encode_s(user_root)
repoErrors = []
allBackups = []
for repo in repos:
# Get binary representation of the repo
repo_b = encode_s(repo) if isinstance(repo, unicode) else repo
repo_b = repo_b.lstrip(b"/")
try:
repo_obj = librdiff.RdiffRepo(user_root_b, repo_b)
backups = repo_obj.get_history_entries(-1, earliest_date,
latest_date)
allBackups += [{"repo_path": repo_obj.path,
"repo_name": repo_obj.display_name,
"date": backup.date,
"size": backup.size,
"errors": backup.errors} for backup in backups]
except librdiff.FileError as e:
repoErrors.append(
{"repo_path": repo_b,
"repo_name": decode_s(repo_b, 'replace'),
"error": unicode(e)})
allBackups.sort(lambda x, y: cmp(y["date"], x["date"]))
failedBackups = filter(lambda x: x["errors"], allBackups)
# group successful backups by day
successfulBackups = filter(lambda x: not x["errors"], allBackups)
if successfulBackups:
lastSuccessDate = successfulBackups[0]["date"]
successfulBackups = rdw_helpers.groupby(
successfulBackups, lambda x: x["date"].getLocalDaysSinceEpoch())
userMessages = []
# generate failure messages
if includeFailure:
for job in failedBackups:
date = job["date"]
job.update(
{"is_success": False,
"date": date,
"repoErrors": [],
"backups": [],
"repo_path": job["repo_path"],
"repo_name": job["repo_name"]})
userMessages.append(job)
# generate success messages (publish date is most recent backup date)
if includeSuccess:
for day in successfulBackups.keys():
date = successfulBackups[day][0]["date"]
# include repository errors in most recent entry
if date == lastSuccessDate:
repoErrorsForMsg = repoErrors
else:
repoErrorsForMsg = []
userMessages.append(
{"is_success": True,
"date": date,
"repoErrors": repoErrorsForMsg,
"backups": successfulBackups[day]})
# sort messages by date
userMessages.sort(lambda x, y: cmp(y["date"], x["date"]))
return userMessages
rdiffweb-v0.7.1/rdiffweb/rdw_config.py 0000775 0000000 0000000 00000012531 12572375337 0020003 0 ustar 00root root 0000000 0000000 #!/usr/bin/python
# -*- coding: utf-8 -*-
# rdiffweb, A web interface to rdiff-backup repositories
# Copyright (C) 2014 rdiffweb contributors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
from __future__ import unicode_literals
import codecs
class SettingsError:
def __str__(self):
return "Invalid configuration file syntax"
class ParameterError:
def __str__(self):
return "Invalid parameters"
def get_config_file():
settingsFiles = ["rdw.conf", "/etc/rdiffweb/rdw.conf"]
# TODO: there *has* to be a better way to get the /etc config file
# path...
for settingsFile in settingsFiles:
if os.access(settingsFile, os.F_OK):
return settingsFile
# Return default
return "/etc/rdiffweb/rdw.conf"
import os
import re
def get_config(settingName, settingsFile=None, default=""):
if ('=' in settingName):
raise ParameterError
if settingsFile is None:
settingsFile = get_config_file()
if (not os.access(settingsFile, os.F_OK)):
return default
# Open settings file as utf-8
settingsStrings = codecs.open(settingsFile, "r", encoding='utf-8', errors='replace').readlines()
for setting in settingsStrings:
setting = re.compile("(.*)#.*").sub(r'\1', setting)
setting = setting.rstrip()
setting = setting.lstrip()
if not setting:
continue
if '=' not in setting:
raise SettingsError
splitSetting = setting.partition('=')
if not len(splitSetting) == 3:
raise SettingsError
# Lower-case both vars for case-insensitive compare
if splitSetting[0].lower() == settingName.lower():
return splitSetting[2]
return default
def get_config_int(settingName, settingsFile=None, default=0):
"""A convenience method which coerces the settingName to an integer."""
try:
return int(get_config(settingName, settingsFile))
except:
return default
def get_config_boolean(settingName, settingsFile=None, default=False):
"""A convenience method which coerces the settingName to a boolean."""
try:
value = get_config(settingName, settingsFile)
return (value == "1" or value == "yes" or value == "true"
or value == "on")
except:
return default
# Unit Tests #
import unittest
class configFileTest(unittest.TestCase):
"""Unit tests for the get_config() function"""
goodConfigText = """ #This=is a comment
SpacesValue=is a setting with spaces
spaces setting=withspaces
CommentInValue=Value#this is a comment
NoValue=#This is a setting with no value
"""
badConfigTexts = [
'This#doesnt have an equals', 'This=more=than one equals']
configFilePath = "/tmp/rdw_config.conf"
def writeGoodFile(self):
file = open(self.configFilePath, "w")
file.write(self.goodConfigText)
file.close()
def writeBadFile(self, badSettingNum):
self.writeGoodFile()
file = open(self.configFilePath, "w")
file.write(self.badConfigTexts[badSettingNum])
file.close()
def tearDown(self):
if (os.access(self.configFilePath, os.F_OK)):
os.remove(self.configFilePath)
def testBadParms(self):
value = get_config("setting", "/tmp/rdw_bogus.conf")
assert(value == "")
self.writeGoodFile()
try:
get_config("setting=", "/tmp/rdw_config.conf")
except ParameterError:
pass
else:
assert(False)
def testSpacesInValue(self):
self.writeGoodFile()
assert(get_config("SpacesValue", "/tmp/rdw_config.conf")
== "is a setting with spaces")
def testSpacesInSetting(self):
self.writeGoodFile()
assert(
get_config("spaces setting", "/tmp/rdw_config.conf") == "withspaces")
def testCommentInValue(self):
self.writeGoodFile()
assert(
get_config("CommentInValue", "/tmp/rdw_config.conf") == "Value")
def testEmptyValue(self):
self.writeGoodFile()
assert(get_config("NoValue", "/tmp/rdw_config.conf") == "")
def testCaseInsensitivity(self):
self.writeGoodFile()
assert(
get_config("commentinvalue", "/tmp/rdw_config.conf") == "Value")
def testMissingSetting(self):
self.writeGoodFile()
assert(
get_config("SettingThatDoesntExist", "/tmp/rdw_config.conf") == "")
def testBadFile(self):
self.writeBadFile(0)
try:
get_config("SpacesValue", "/tmp/rdw_config.conf")
except SettingsError:
pass
else:
assert(False)
self.writeBadFile(1)
value = get_config("This", "/tmp/rdw_config.conf")
assert(value == "more=than one equals")
rdiffweb-v0.7.1/rdiffweb/rdw_helpers.py 0000775 0000000 0000000 00000021063 12572375337 0020200 0 ustar 00root root 0000000 0000000 #!/usr/bin/python
# -*- coding: utf-8 -*-
# rdiffweb, A web interface to rdiff-backup repositories
# Copyright (C) 2014 rdiffweb contributors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
import sys
import calendar
import os
import time
import urllib
# Get the system encoding
system_charset = sys.getfilesystemencoding()
def decode_s(value, errors='strict'):
"""Convert charset to system unicode."""
assert isinstance(value, str)
return value.decode(system_charset, errors)
def encode_s(value):
"""Convert unicode to system charset."""
if value is None:
return None
assert isinstance(value, unicode)
return value.encode(system_charset)
def quote_url(url, safe=None):
"""encode URL but try to keep encoding (unicode vs str)"""
# If URL is None, return None
if not url:
return url
# If safe is define, make sure it's the same object type (either unicode
# or str)
if safe:
assert type(url) == type(safe), "url [%s] and safe [%s] are not the same type" % (type(url), type(safe))
else:
safe = "/"
is_unicode = False
if isinstance(url, unicode):
is_unicode = True
url = url.encode('utf8')
safe = safe.encode('utf8')
# URL encode
value = urllib.quote(url, safe)
if is_unicode:
value = value.decode('utf8')
return value
def unquote_url(encodedUrl):
if not encodedUrl:
return encodedUrl
return urllib.unquote(encodedUrl)
def remove_dir(directory):
"""Used to remove directory and subdirectory"""
assert isinstance(directory, str)
for root, dirs, files in os.walk(directory, topdown=False):
for name in files:
filePath = os.path.join(root, name)
if os.path.islink(filePath):
os.unlink(filePath)
else:
os.remove(filePath)
for name in dirs:
dirPath = os.path.join(root, name)
if os.path.islink(dirPath):
os.unlink(dirPath)
else:
os.rmdir(dirPath)
os.rmdir(directory)
class rdwTime:
"""Time information has two components: the local time, stored in GMT as
seconds since Epoch, and the timezone, stored as a seconds offset. Since
the server may not be in the same timezone as the user, we cannot rely on
the built-in localtime() functions, but look at the rdiff-backup string
for timezone information. As a general rule, we always display the
"local" time, but pass the timezone information on to rdiff-backup, so
it can restore to the correct state"""
def __init__(self):
self.timeInSeconds = 0
self.tzOffset = 0
def initFromInt(self, seconds):
assert isinstance(seconds, int)
self.timeInSeconds = seconds
self.tzOffset = 0
def initFromMidnightUTC(self, daysFromToday):
self.timeInSeconds = time.time()
self.timeInSeconds -= self.timeInSeconds % (24 * 60 * 60)
self.timeInSeconds += daysFromToday * 24 * 60 * 60
self.tzOffset = 0
def initFromString(self, timeString):
try:
date, daytime = timeString[:19].split("T")
year, month, day = map(int, date.split("-"))
hour, minute, second = map(int, daytime.split(":"))
assert 1900 < year < 2100, year
assert 1 <= month <= 12
assert 1 <= day <= 31
assert 0 <= hour <= 23
assert 0 <= minute <= 59
assert 0 <= second <= 61 # leap seconds
timetuple = (year, month, day, hour, minute, second, -1, -1, 0)
self.timeInSeconds = calendar.timegm(timetuple)
self.tzOffset = self._tzdtoseconds(timeString[19:])
self.getTimeZoneString() # to get assertions there
except (TypeError, ValueError, AssertionError):
raise ValueError(timeString)
def getLocalDaysSinceEpoch(self):
return self.getLocalSeconds() // (24 * 60 * 60)
def getLocalSeconds(self):
return self.timeInSeconds
def getSeconds(self):
return self.timeInSeconds - self.tzOffset
def getDisplayString(self):
return decode_s(time.strftime(encode_s(u"%Y-%m-%d %H:%M:%S"),
time.gmtime(self.getLocalSeconds())))
def getTimeZoneString(self):
if self.tzOffset:
tzinfo = self._getTimeZoneDisplayInfo()
return (tzinfo["plusMinus"]
+ tzinfo["hours"]
+ ":" + tzinfo["minutes"])
else:
return "Z"
def setTime(self, hour, minute, second):
year = time.gmtime(self.timeInSeconds)[0]
month = time.gmtime(self.timeInSeconds)[1]
day = time.gmtime(self.timeInSeconds)[2]
self.timeInSeconds = calendar.timegm(
(year, month, day, hour, minute, second, -1, -1, 0))
def _getTimeZoneDisplayInfo(self):
hours, minutes = divmod(abs(self.tzOffset) / 60, 60)
assert 0 <= hours <= 23
assert 0 <= minutes <= 59
if self.tzOffset > 0:
plusMinus = "+"
else:
plusMinus = "-"
return {"plusMinus": plusMinus,
"hours": "%02d" % hours,
"minutes": "%02d" % minutes}
def _tzdtoseconds(self, tzd):
"""Given w3 compliant TZD, converts it to number of seconds from UTC"""
if tzd == "Z":
return 0
assert len(tzd) == 6 # only accept forms like +08:00 for now
assert (tzd[0] == "-" or tzd[0] == "+") and tzd[3] == ":"
if tzd[0] == "+":
plusMinus = 1
else:
plusMinus = -1
return plusMinus * 60 * (60 * int(tzd[1:3]) + int(tzd[4:]))
def __cmp__(self, other):
assert isinstance(other, rdwTime)
return cmp(self.getSeconds(), other.getSeconds())
def __eq__(self, other):
return (isinstance(other, rdwTime)
and self.getSeconds() == other.getSeconds())
def __hash__(self):
return hash(self.getSeconds())
def __str__(self):
"""return utf-8 string"""
return str(self.getDisplayString())
def __unicode__(self):
return self.getDisplayString()
def __repr__(self):
"""return second since epoch"""
return str(self.getSeconds())
# Taken from ASPN:
# http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/259173
class groupby(dict):
def __init__(self, seq, key=lambda x: x):
for value in seq:
k = key(value)
self.setdefault(k, []).append(value)
__iter__ = dict.iteritems
# Taken from ASPN:
# http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/278731
def daemonize():
"""Detach a process from the controlling terminal and run it in the
background as a daemon. """
if (hasattr(os, "devnull")):
REDIRECT_TO = os.devnull
else:
REDIRECT_TO = "/dev/null"
MAXFD = 1024
UMASK = 0
try:
pid = os.fork()
except OSError as e:
raise Exception("%s [%d]" % (e.strerror, e.errno))
if (pid == 0): # The first child.
os.setsid()
try:
pid = os.fork() # Fork a second child.
except OSError as e:
raise Exception("%s [%d]" % (e.strerror, e.errno))
if (pid == 0): # The second child.
os.umask(UMASK)
else:
os._exit(0) # Exit parent (the first child) of the second child.
else:
os._exit(0) # Exit parent of the first child.
# Redirecting output to /dev/null fails when called from a script, for some
# reason...
# import resource # Resource usage information.
# maxfd = resource.getrlimit(resource.RLIMIT_NOFILE)[1]
# if (maxfd == resource.RLIM_INFINITY):
# maxfd = MAXFD
# for fd in range(0, maxfd):
# try:
# os.close(fd)
# except OSError: # ERROR, fd wasn't open to begin with (ignored)
# pass
# os.open(REDIRECT_TO, os.O_RDWR) # standard input (0)
# os.dup2(0, 1) # standard output (1)
# os.dup2(0, 2) # standard error (2)
return(0)
rdiffweb-v0.7.1/rdiffweb/rdw_spider_repos.py 0000775 0000000 0000000 00000005320 12572375337 0021232 0 ustar 00root root 0000000 0000000 #!/usr/bin/python
# -*- coding: utf-8 -*-
# rdiffweb, A web interface to rdiff-backup repositories
# Copyright (C) 2014 rdiffweb contributors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
import os
import db
import librdiff
import logging
import rdw_config
import threading
# Define the logger
logger = logging.getLogger(__name__)
# Returns pid of started process, or 0 if no process was started
def startRepoSpiderThread(killEvent):
newThread = spiderReposThread(killEvent)
newThread.start()
class spiderReposThread(threading.Thread):
def __init__(self, killEvent):
self.killEvent = killEvent
threading.Thread.__init__(self)
def run(self):
spiderInterval = rdw_config.get_config("autoUpdateRepos")
if spiderInterval:
spiderInterval = int(spiderInterval)
while True:
findReposForAllUsers()
self.killEvent.wait(60 * spiderInterval)
if self.killEvent.isSet():
return
def _findRdiffRepos(dirToSearch, outRepoPaths, depth=0):
# TODO Should be a configuration
# Limit the depthness
if depth >= 3:
return
dirEntries = os.listdir(dirToSearch)
if librdiff.RDIFF_BACKUP_DATA in dirEntries:
outRepoPaths.append(dirToSearch)
return
for entry in dirEntries:
entryPath = os.path.join(dirToSearch, entry)
if os.path.isdir(entryPath) and not os.path.islink(entryPath):
_findRdiffRepos(entryPath, outRepoPaths, depth + 1)
def findReposForUser(user, userDBModule):
logger.debug("find repos for [%s]" % user)
userRoot = userDBModule.get_root_dir(user)
repoPaths = []
_findRdiffRepos(userRoot, repoPaths)
def stripRoot(path):
if not path[len(userRoot):]:
return "/"
return path[len(userRoot):]
repoPaths = map(stripRoot, repoPaths)
userDBModule.set_repos(user, repoPaths)
def findReposForAllUsers():
userDBModule = db.userDB().get_userdb_module()
if not userDBModule.is_modifiable():
return
users = userDBModule.list()
for user in users:
findReposForUser(user, userDBModule)
rdiffweb-v0.7.1/rdiffweb/rdw_templating.py 0000775 0000000 0000000 00000013253 12572375337 0020704 0 ustar 00root root 0000000 0000000 #!/usr/bin/python
# -*- coding: utf-8 -*-
# rdiffweb, A web interface to rdiff-backup repositories
# Copyright (C) 2014 rdiffweb contributors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
from __future__ import unicode_literals
import logging
import time
from jinja2 import Environment, PackageLoader
import rdw_helpers
from i18n import ugettext, ungettext
# Load all the templates from /templates directory
jinja_env = Environment(loader=PackageLoader('rdiffweb', 'templates'),
auto_reload=True,
autoescape=True,
extensions=['jinja2.ext.i18n'])
# Define the logger
logger = logging.getLogger(__name__)
def compile_template(templateName, **kwargs):
"""Very simple implementation to render template using jinja2.
`templateName`
The filename to be used as template.
`kwargs`
The arguments to be passed to the template.
"""
logger.debug("compiling template [%s]" % templateName)
jinja_env.install_gettext_callables(ugettext, ungettext, newstyle=True)
template = jinja_env.get_template(templateName)
data = template.render(kwargs)
logger.debug("template [%s] compiled" % templateName)
return data
def do_filter(sequence, attribute_name):
"""Filter sequence of objects."""
return filter(lambda x:
(isinstance(x, dict) and attribute_name in x
and x[attribute_name]) or
(hasattr(x, attribute_name) and getattr(x, attribute_name)),
sequence)
def do_format_datetime(value, dateformat='%Y-%m-%d %H:%M'):
"""Used to format an epoch into local time."""
if not value:
return ""
if isinstance(value, rdw_helpers.rdwTime):
value = value.getSeconds()
# TODO Try to figure out the time zone name (it's a )
return time.strftime(dateformat, time.localtime(value))
def do_format_filesize(value, binary=False):
"""Format the value like a 'human-readable' file size (i.e. 13 kB,
4.1 MB, 102 Bytes, etc). Per default decimal prefixes are used (Mega,
Giga, etc.), if the second parameter is set to `True` the binary
prefixes are used (Mebi, Gibi).
"""
size = float(value)
base = binary and 1024 or 1000
prefixes = [
(binary and 'KiB' or 'kB'),
(binary and 'MiB' or 'MB'),
(binary and 'GiB' or 'GB'),
(binary and 'TiB' or 'TB'),
(binary and 'PiB' or 'PB'),
(binary and 'EiB' or 'EB'),
(binary and 'ZiB' or 'ZB'),
(binary and 'YiB' or 'YB')
]
if size == 1:
return '1 Byte'
elif size < base:
return '%d Bytes' % size
else:
for i, prefix in enumerate(prefixes):
unit = base ** (i + 2)
if size < unit:
return '%.1f %s' % ((base * size / unit), prefix)
return '%.1f %s' % ((base * size / unit), prefix)
def url_for_browse(repo, path=b"", restore=False):
"""Generate an URL for browse controller."""
# Make sure the URL end with a "/" otherwise cherrypy does an internal
# redirection.
assert isinstance(repo, str)
assert isinstance(path, str)
url = []
url.append("/browse/")
if repo:
repo = repo.rstrip(b"/")
url.append(rdw_helpers.quote_url(repo))
url.append("/")
if len(path) > 0:
path = path.rstrip(b"/")
url.append(rdw_helpers.quote_url(path))
url.append("/")
if restore:
url.append("?")
url.append("restore=T")
return ''.join(url)
def url_for_history(repo):
url = []
url.append("/history/")
if repo:
repo = repo.rstrip(b"/")
url.append(rdw_helpers.quote_url(repo))
url.append("/")
return ''.join(url)
def url_for_restore(repo, path, date, usetar=False):
assert isinstance(repo, str)
assert isinstance(path, str)
assert isinstance(date, rdw_helpers.rdwTime)
url = []
url.append("/restore/")
if repo:
repo = repo.rstrip(b"/")
url.append(rdw_helpers.quote_url(repo))
url.append("/")
if len(path) > 0:
path = path.rstrip(b"/")
url.append(rdw_helpers.quote_url(path))
url.append("/")
# Append date
url.append("?date=")
url.append(str(date.getSeconds()))
if usetar:
url.append("&usetar=T")
return ''.join(url)
def url_for_status_entry(date, repo=None):
assert isinstance(date, rdw_helpers.rdwTime)
url = []
url.append("/status/entry/")
if repo:
assert isinstance(repo, str)
repo = repo.rstrip(b"/")
url.append(rdw_helpers.quote_url(repo))
url.append("/")
if date:
url.append("?date=")
url.append(str(date.getSeconds()))
return ''.join(url)
# Register filters
jinja_env.filters['filter'] = do_filter
jinja_env.filters['datetime'] = do_format_datetime
jinja_env.filters['filesize'] = do_format_filesize
# Register method
jinja_env.globals['url_for_browse'] = url_for_browse
jinja_env.globals['url_for_history'] = url_for_history
jinja_env.globals['url_for_restore'] = url_for_restore
jinja_env.globals['url_for_status_entry'] = url_for_status_entry
rdiffweb-v0.7.1/rdiffweb/static/ 0000775 0000000 0000000 00000000000 12572375337 0016572 5 ustar 00root root 0000000 0000000 rdiffweb-v0.7.1/rdiffweb/static/css/ 0000775 0000000 0000000 00000000000 12572375337 0017362 5 ustar 00root root 0000000 0000000 rdiffweb-v0.7.1/rdiffweb/static/css/main.min.css 0000664 0000000 0000000 00000450356 12572375337 0021617 0 ustar 00root root 0000000 0000000 /*! normalize.css v3.0.2 | MIT License | git.io/normalize */
html {
font-family: sans-serif;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
}
body {
margin: 0;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
display: block;
}
audio,
canvas,
progress,
video {
display: inline-block;
vertical-align: baseline;
}
audio:not([controls]) {
display: none;
height: 0;
}
[hidden],
template {
display: none;
}
a {
background-color: transparent;
}
a:active,
a:hover {
outline: 0;
}
abbr[title] {
border-bottom: 1px dotted;
}
b,
strong {
font-weight: bold;
}
dfn {
font-style: italic;
}
h1 {
font-size: 2em;
margin: 0.67em 0;
}
mark {
background: #ff0;
color: #000;
}
small {
font-size: 80%;
}
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}
img {
border: 0;
}
svg:not(:root) {
overflow: hidden;
}
figure {
margin: 1em 40px;
}
hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
pre {
overflow: auto;
}
code,
kbd,
pre,
samp {
font-family: monospace, monospace;
font-size: 1em;
}
button,
input,
optgroup,
select,
textarea {
color: inherit;
font: inherit;
margin: 0;
}
button {
overflow: visible;
}
button,
select {
text-transform: none;
}
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
-webkit-appearance: button;
cursor: pointer;
}
button[disabled],
html input[disabled] {
cursor: default;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
border: 0;
padding: 0;
}
input {
line-height: normal;
}
input[type="checkbox"],
input[type="radio"] {
box-sizing: border-box;
padding: 0;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
height: auto;
}
input[type="search"] {
-webkit-appearance: textfield;
-moz-box-sizing: content-box;
-webkit-box-sizing: content-box;
box-sizing: content-box;
}
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
fieldset {
border: 1px solid #c0c0c0;
margin: 0 2px;
padding: 0.35em 0.625em 0.75em;
}
legend {
border: 0;
padding: 0;
}
textarea {
overflow: auto;
}
optgroup {
font-weight: bold;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
td,
th {
padding: 0;
}
/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */
@media print {
*,
*:before,
*:after {
background: transparent !important;
color: #000 !important;
box-shadow: none !important;
text-shadow: none !important;
}
a,
a:visited {
text-decoration: underline;
}
a[href]:after {
content: " (" attr(href) ")";
}
abbr[title]:after {
content: " (" attr(title) ")";
}
a[href^="#"]:after,
a[href^="javascript:"]:after {
content: "";
}
pre,
blockquote {
border: 1px solid #999;
page-break-inside: avoid;
}
thead {
display: table-header-group;
}
tr,
img {
page-break-inside: avoid;
}
img {
max-width: 100% !important;
}
p,
h2,
h3 {
orphans: 3;
widows: 3;
}
h2,
h3 {
page-break-after: avoid;
}
select {
background: #fff !important;
}
.navbar {
display: none;
}
.btn > .caret,
.dropup > .btn > .caret {
border-top-color: #000 !important;
}
.label {
border: 1px solid #000;
}
.table {
border-collapse: collapse !important;
}
.table td,
.table th {
background-color: #fff !important;
}
.table-bordered th,
.table-bordered td {
border: 1px solid #ddd !important;
}
}
@font-face {
font-family: 'Glyphicons Halflings';
src: url('../fonts/glyphicons-halflings-regular.eot');
src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff2') format('woff2'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
}
.glyphicon {
position: relative;
top: 1px;
display: inline-block;
font-family: 'Glyphicons Halflings';
font-style: normal;
font-weight: normal;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.glyphicon-asterisk:before {
content: "\2a";
}
.glyphicon-plus:before {
content: "\2b";
}
.glyphicon-euro:before,
.glyphicon-eur:before {
content: "\20ac";
}
.glyphicon-minus:before {
content: "\2212";
}
.glyphicon-cloud:before {
content: "\2601";
}
.glyphicon-envelope:before {
content: "\2709";
}
.glyphicon-pencil:before {
content: "\270f";
}
.glyphicon-glass:before {
content: "\e001";
}
.glyphicon-music:before {
content: "\e002";
}
.glyphicon-search:before {
content: "\e003";
}
.glyphicon-heart:before {
content: "\e005";
}
.glyphicon-star:before {
content: "\e006";
}
.glyphicon-star-empty:before {
content: "\e007";
}
.glyphicon-user:before {
content: "\e008";
}
.glyphicon-film:before {
content: "\e009";
}
.glyphicon-th-large:before {
content: "\e010";
}
.glyphicon-th:before {
content: "\e011";
}
.glyphicon-th-list:before {
content: "\e012";
}
.glyphicon-ok:before {
content: "\e013";
}
.glyphicon-remove:before {
content: "\e014";
}
.glyphicon-zoom-in:before {
content: "\e015";
}
.glyphicon-zoom-out:before {
content: "\e016";
}
.glyphicon-off:before {
content: "\e017";
}
.glyphicon-signal:before {
content: "\e018";
}
.glyphicon-cog:before {
content: "\e019";
}
.glyphicon-trash:before {
content: "\e020";
}
.glyphicon-home:before {
content: "\e021";
}
.glyphicon-file:before {
content: "\e022";
}
.glyphicon-time:before {
content: "\e023";
}
.glyphicon-road:before {
content: "\e024";
}
.glyphicon-download-alt:before {
content: "\e025";
}
.glyphicon-download:before {
content: "\e026";
}
.glyphicon-upload:before {
content: "\e027";
}
.glyphicon-inbox:before {
content: "\e028";
}
.glyphicon-play-circle:before {
content: "\e029";
}
.glyphicon-repeat:before {
content: "\e030";
}
.glyphicon-refresh:before {
content: "\e031";
}
.glyphicon-list-alt:before {
content: "\e032";
}
.glyphicon-lock:before {
content: "\e033";
}
.glyphicon-flag:before {
content: "\e034";
}
.glyphicon-headphones:before {
content: "\e035";
}
.glyphicon-volume-off:before {
content: "\e036";
}
.glyphicon-volume-down:before {
content: "\e037";
}
.glyphicon-volume-up:before {
content: "\e038";
}
.glyphicon-qrcode:before {
content: "\e039";
}
.glyphicon-barcode:before {
content: "\e040";
}
.glyphicon-tag:before {
content: "\e041";
}
.glyphicon-tags:before {
content: "\e042";
}
.glyphicon-book:before {
content: "\e043";
}
.glyphicon-bookmark:before {
content: "\e044";
}
.glyphicon-print:before {
content: "\e045";
}
.glyphicon-camera:before {
content: "\e046";
}
.glyphicon-font:before {
content: "\e047";
}
.glyphicon-bold:before {
content: "\e048";
}
.glyphicon-italic:before {
content: "\e049";
}
.glyphicon-text-height:before {
content: "\e050";
}
.glyphicon-text-width:before {
content: "\e051";
}
.glyphicon-align-left:before {
content: "\e052";
}
.glyphicon-align-center:before {
content: "\e053";
}
.glyphicon-align-right:before {
content: "\e054";
}
.glyphicon-align-justify:before {
content: "\e055";
}
.glyphicon-list:before {
content: "\e056";
}
.glyphicon-indent-left:before {
content: "\e057";
}
.glyphicon-indent-right:before {
content: "\e058";
}
.glyphicon-facetime-video:before {
content: "\e059";
}
.glyphicon-picture:before {
content: "\e060";
}
.glyphicon-map-marker:before {
content: "\e062";
}
.glyphicon-adjust:before {
content: "\e063";
}
.glyphicon-tint:before {
content: "\e064";
}
.glyphicon-edit:before {
content: "\e065";
}
.glyphicon-share:before {
content: "\e066";
}
.glyphicon-check:before {
content: "\e067";
}
.glyphicon-move:before {
content: "\e068";
}
.glyphicon-step-backward:before {
content: "\e069";
}
.glyphicon-fast-backward:before {
content: "\e070";
}
.glyphicon-backward:before {
content: "\e071";
}
.glyphicon-play:before {
content: "\e072";
}
.glyphicon-pause:before {
content: "\e073";
}
.glyphicon-stop:before {
content: "\e074";
}
.glyphicon-forward:before {
content: "\e075";
}
.glyphicon-fast-forward:before {
content: "\e076";
}
.glyphicon-step-forward:before {
content: "\e077";
}
.glyphicon-eject:before {
content: "\e078";
}
.glyphicon-chevron-left:before {
content: "\e079";
}
.glyphicon-chevron-right:before {
content: "\e080";
}
.glyphicon-plus-sign:before {
content: "\e081";
}
.glyphicon-minus-sign:before {
content: "\e082";
}
.glyphicon-remove-sign:before {
content: "\e083";
}
.glyphicon-ok-sign:before {
content: "\e084";
}
.glyphicon-question-sign:before {
content: "\e085";
}
.glyphicon-info-sign:before {
content: "\e086";
}
.glyphicon-screenshot:before {
content: "\e087";
}
.glyphicon-remove-circle:before {
content: "\e088";
}
.glyphicon-ok-circle:before {
content: "\e089";
}
.glyphicon-ban-circle:before {
content: "\e090";
}
.glyphicon-arrow-left:before {
content: "\e091";
}
.glyphicon-arrow-right:before {
content: "\e092";
}
.glyphicon-arrow-up:before {
content: "\e093";
}
.glyphicon-arrow-down:before {
content: "\e094";
}
.glyphicon-share-alt:before {
content: "\e095";
}
.glyphicon-resize-full:before {
content: "\e096";
}
.glyphicon-resize-small:before {
content: "\e097";
}
.glyphicon-exclamation-sign:before {
content: "\e101";
}
.glyphicon-gift:before {
content: "\e102";
}
.glyphicon-leaf:before {
content: "\e103";
}
.glyphicon-fire:before {
content: "\e104";
}
.glyphicon-eye-open:before {
content: "\e105";
}
.glyphicon-eye-close:before {
content: "\e106";
}
.glyphicon-warning-sign:before {
content: "\e107";
}
.glyphicon-plane:before {
content: "\e108";
}
.glyphicon-calendar:before {
content: "\e109";
}
.glyphicon-random:before {
content: "\e110";
}
.glyphicon-comment:before {
content: "\e111";
}
.glyphicon-magnet:before {
content: "\e112";
}
.glyphicon-chevron-up:before {
content: "\e113";
}
.glyphicon-chevron-down:before {
content: "\e114";
}
.glyphicon-retweet:before {
content: "\e115";
}
.glyphicon-shopping-cart:before {
content: "\e116";
}
.glyphicon-folder-close:before {
content: "\e117";
}
.glyphicon-folder-open:before {
content: "\e118";
}
.glyphicon-resize-vertical:before {
content: "\e119";
}
.glyphicon-resize-horizontal:before {
content: "\e120";
}
.glyphicon-hdd:before {
content: "\e121";
}
.glyphicon-bullhorn:before {
content: "\e122";
}
.glyphicon-bell:before {
content: "\e123";
}
.glyphicon-certificate:before {
content: "\e124";
}
.glyphicon-thumbs-up:before {
content: "\e125";
}
.glyphicon-thumbs-down:before {
content: "\e126";
}
.glyphicon-hand-right:before {
content: "\e127";
}
.glyphicon-hand-left:before {
content: "\e128";
}
.glyphicon-hand-up:before {
content: "\e129";
}
.glyphicon-hand-down:before {
content: "\e130";
}
.glyphicon-circle-arrow-right:before {
content: "\e131";
}
.glyphicon-circle-arrow-left:before {
content: "\e132";
}
.glyphicon-circle-arrow-up:before {
content: "\e133";
}
.glyphicon-circle-arrow-down:before {
content: "\e134";
}
.glyphicon-globe:before {
content: "\e135";
}
.glyphicon-wrench:before {
content: "\e136";
}
.glyphicon-tasks:before {
content: "\e137";
}
.glyphicon-filter:before {
content: "\e138";
}
.glyphicon-briefcase:before {
content: "\e139";
}
.glyphicon-fullscreen:before {
content: "\e140";
}
.glyphicon-dashboard:before {
content: "\e141";
}
.glyphicon-paperclip:before {
content: "\e142";
}
.glyphicon-heart-empty:before {
content: "\e143";
}
.glyphicon-link:before {
content: "\e144";
}
.glyphicon-phone:before {
content: "\e145";
}
.glyphicon-pushpin:before {
content: "\e146";
}
.glyphicon-usd:before {
content: "\e148";
}
.glyphicon-gbp:before {
content: "\e149";
}
.glyphicon-sort:before {
content: "\e150";
}
.glyphicon-sort-by-alphabet:before {
content: "\e151";
}
.glyphicon-sort-by-alphabet-alt:before {
content: "\e152";
}
.glyphicon-sort-by-order:before {
content: "\e153";
}
.glyphicon-sort-by-order-alt:before {
content: "\e154";
}
.glyphicon-sort-by-attributes:before {
content: "\e155";
}
.glyphicon-sort-by-attributes-alt:before {
content: "\e156";
}
.glyphicon-unchecked:before {
content: "\e157";
}
.glyphicon-expand:before {
content: "\e158";
}
.glyphicon-collapse-down:before {
content: "\e159";
}
.glyphicon-collapse-up:before {
content: "\e160";
}
.glyphicon-log-in:before {
content: "\e161";
}
.glyphicon-flash:before {
content: "\e162";
}
.glyphicon-log-out:before {
content: "\e163";
}
.glyphicon-new-window:before {
content: "\e164";
}
.glyphicon-record:before {
content: "\e165";
}
.glyphicon-save:before {
content: "\e166";
}
.glyphicon-open:before {
content: "\e167";
}
.glyphicon-saved:before {
content: "\e168";
}
.glyphicon-import:before {
content: "\e169";
}
.glyphicon-export:before {
content: "\e170";
}
.glyphicon-send:before {
content: "\e171";
}
.glyphicon-floppy-disk:before {
content: "\e172";
}
.glyphicon-floppy-saved:before {
content: "\e173";
}
.glyphicon-floppy-remove:before {
content: "\e174";
}
.glyphicon-floppy-save:before {
content: "\e175";
}
.glyphicon-floppy-open:before {
content: "\e176";
}
.glyphicon-credit-card:before {
content: "\e177";
}
.glyphicon-transfer:before {
content: "\e178";
}
.glyphicon-cutlery:before {
content: "\e179";
}
.glyphicon-header:before {
content: "\e180";
}
.glyphicon-compressed:before {
content: "\e181";
}
.glyphicon-earphone:before {
content: "\e182";
}
.glyphicon-phone-alt:before {
content: "\e183";
}
.glyphicon-tower:before {
content: "\e184";
}
.glyphicon-stats:before {
content: "\e185";
}
.glyphicon-sd-video:before {
content: "\e186";
}
.glyphicon-hd-video:before {
content: "\e187";
}
.glyphicon-subtitles:before {
content: "\e188";
}
.glyphicon-sound-stereo:before {
content: "\e189";
}
.glyphicon-sound-dolby:before {
content: "\e190";
}
.glyphicon-sound-5-1:before {
content: "\e191";
}
.glyphicon-sound-6-1:before {
content: "\e192";
}
.glyphicon-sound-7-1:before {
content: "\e193";
}
.glyphicon-copyright-mark:before {
content: "\e194";
}
.glyphicon-registration-mark:before {
content: "\e195";
}
.glyphicon-cloud-download:before {
content: "\e197";
}
.glyphicon-cloud-upload:before {
content: "\e198";
}
.glyphicon-tree-conifer:before {
content: "\e199";
}
.glyphicon-tree-deciduous:before {
content: "\e200";
}
.glyphicon-cd:before {
content: "\e201";
}
.glyphicon-save-file:before {
content: "\e202";
}
.glyphicon-open-file:before {
content: "\e203";
}
.glyphicon-level-up:before {
content: "\e204";
}
.glyphicon-copy:before {
content: "\e205";
}
.glyphicon-paste:before {
content: "\e206";
}
.glyphicon-alert:before {
content: "\e209";
}
.glyphicon-equalizer:before {
content: "\e210";
}
.glyphicon-king:before {
content: "\e211";
}
.glyphicon-queen:before {
content: "\e212";
}
.glyphicon-pawn:before {
content: "\e213";
}
.glyphicon-bishop:before {
content: "\e214";
}
.glyphicon-knight:before {
content: "\e215";
}
.glyphicon-baby-formula:before {
content: "\e216";
}
.glyphicon-tent:before {
content: "\26fa";
}
.glyphicon-blackboard:before {
content: "\e218";
}
.glyphicon-bed:before {
content: "\e219";
}
.glyphicon-apple:before {
content: "\f8ff";
}
.glyphicon-erase:before {
content: "\e221";
}
.glyphicon-hourglass:before {
content: "\231b";
}
.glyphicon-lamp:before {
content: "\e223";
}
.glyphicon-duplicate:before {
content: "\e224";
}
.glyphicon-piggy-bank:before {
content: "\e225";
}
.glyphicon-scissors:before {
content: "\e226";
}
.glyphicon-bitcoin:before {
content: "\e227";
}
.glyphicon-btc:before {
content: "\e227";
}
.glyphicon-xbt:before {
content: "\e227";
}
.glyphicon-yen:before {
content: "\00a5";
}
.glyphicon-jpy:before {
content: "\00a5";
}
.glyphicon-ruble:before {
content: "\20bd";
}
.glyphicon-rub:before {
content: "\20bd";
}
.glyphicon-scale:before {
content: "\e230";
}
.glyphicon-ice-lolly:before {
content: "\e231";
}
.glyphicon-ice-lolly-tasted:before {
content: "\e232";
}
.glyphicon-education:before {
content: "\e233";
}
.glyphicon-option-horizontal:before {
content: "\e234";
}
.glyphicon-option-vertical:before {
content: "\e235";
}
.glyphicon-menu-hamburger:before {
content: "\e236";
}
.glyphicon-modal-window:before {
content: "\e237";
}
.glyphicon-oil:before {
content: "\e238";
}
.glyphicon-grain:before {
content: "\e239";
}
.glyphicon-sunglasses:before {
content: "\e240";
}
.glyphicon-text-size:before {
content: "\e241";
}
.glyphicon-text-color:before {
content: "\e242";
}
.glyphicon-text-background:before {
content: "\e243";
}
.glyphicon-object-align-top:before {
content: "\e244";
}
.glyphicon-object-align-bottom:before {
content: "\e245";
}
.glyphicon-object-align-horizontal:before {
content: "\e246";
}
.glyphicon-object-align-left:before {
content: "\e247";
}
.glyphicon-object-align-vertical:before {
content: "\e248";
}
.glyphicon-object-align-right:before {
content: "\e249";
}
.glyphicon-triangle-right:before {
content: "\e250";
}
.glyphicon-triangle-left:before {
content: "\e251";
}
.glyphicon-triangle-bottom:before {
content: "\e252";
}
.glyphicon-triangle-top:before {
content: "\e253";
}
.glyphicon-console:before {
content: "\e254";
}
.glyphicon-superscript:before {
content: "\e255";
}
.glyphicon-subscript:before {
content: "\e256";
}
.glyphicon-menu-left:before {
content: "\e257";
}
.glyphicon-menu-right:before {
content: "\e258";
}
.glyphicon-menu-down:before {
content: "\e259";
}
.glyphicon-menu-up:before {
content: "\e260";
}
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
*:before,
*:after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
html {
font-size: 10px;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
body {
font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 15px;
line-height: 1.4;
color: #222222;
background-color: #ffffff;
}
input,
button,
select,
textarea {
font-family: inherit;
font-size: inherit;
line-height: inherit;
}
a {
color: #008cba;
text-decoration: none;
}
a:hover,
a:focus {
color: #00526e;
text-decoration: underline;
}
a:focus {
outline: thin dotted;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}
figure {
margin: 0;
}
img {
vertical-align: middle;
}
.img-responsive,
.thumbnail > img,
.thumbnail a > img,
.carousel-inner > .item > img,
.carousel-inner > .item > a > img {
display: block;
max-width: 100%;
height: auto;
}
.img-rounded {
border-radius: 0;
}
.img-thumbnail {
padding: 4px;
line-height: 1.4;
background-color: #ffffff;
border: 1px solid #dddddd;
border-radius: 0;
-webkit-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
display: inline-block;
max-width: 100%;
height: auto;
}
.img-circle {
border-radius: 50%;
}
hr {
margin-top: 21px;
margin-bottom: 21px;
border: 0;
border-top: 1px solid #dddddd;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0;
}
.sr-only-focusable:active,
.sr-only-focusable:focus {
position: static;
width: auto;
height: auto;
margin: 0;
overflow: visible;
clip: auto;
}
[role="button"] {
cursor: pointer;
}
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: 300;
line-height: 1.1;
color: inherit;
}
h1 small,
h2 small,
h3 small,
h4 small,
h5 small,
h6 small,
.h1 small,
.h2 small,
.h3 small,
.h4 small,
.h5 small,
.h6 small,
h1 .small,
h2 .small,
h3 .small,
h4 .small,
h5 .small,
h6 .small,
.h1 .small,
.h2 .small,
.h3 .small,
.h4 .small,
.h5 .small,
.h6 .small {
font-weight: normal;
line-height: 1;
color: #999999;
}
h1,
.h1,
h2,
.h2,
h3,
.h3 {
margin-top: 21px;
margin-bottom: 10.5px;
}
h1 small,
.h1 small,
h2 small,
.h2 small,
h3 small,
.h3 small,
h1 .small,
.h1 .small,
h2 .small,
.h2 .small,
h3 .small,
.h3 .small {
font-size: 65%;
}
h4,
.h4,
h5,
.h5,
h6,
.h6 {
margin-top: 10.5px;
margin-bottom: 10.5px;
}
h4 small,
.h4 small,
h5 small,
.h5 small,
h6 small,
.h6 small,
h4 .small,
.h4 .small,
h5 .small,
.h5 .small,
h6 .small,
.h6 .small {
font-size: 75%;
}
h1,
.h1 {
font-size: 39px;
}
h2,
.h2 {
font-size: 32px;
}
h3,
.h3 {
font-size: 26px;
}
h4,
.h4 {
font-size: 19px;
}
h5,
.h5 {
font-size: 15px;
}
h6,
.h6 {
font-size: 13px;
}
p {
margin: 0 0 10.5px;
}
.lead {
margin-bottom: 21px;
font-size: 17px;
font-weight: 300;
line-height: 1.4;
}
@media (min-width: 768px) {
.lead {
font-size: 22.5px;
}
}
small,
.small {
font-size: 80%;
}
mark,
.mark {
background-color: #fcf8e3;
padding: .2em;
}
.text-left {
text-align: left;
}
.text-right {
text-align: right;
}
.text-center {
text-align: center;
}
.text-justify {
text-align: justify;
}
.text-nowrap {
white-space: nowrap;
}
.text-lowercase {
text-transform: lowercase;
}
.text-uppercase {
text-transform: uppercase;
}
.text-capitalize {
text-transform: capitalize;
}
.text-muted {
color: #999999;
}
.text-primary {
color: #008cba;
}
a.text-primary:hover {
color: #006687;
}
.text-success {
color: #43ac6a;
}
a.text-success:hover {
color: #358753;
}
.text-info {
color: #5bc0de;
}
a.text-info:hover {
color: #31b0d5;
}
.text-warning {
color: #e99002;
}
a.text-warning:hover {
color: #b67102;
}
.text-danger {
color: #f04124;
}
a.text-danger:hover {
color: #d32a0e;
}
.bg-primary {
color: #fff;
background-color: #008cba;
}
a.bg-primary:hover {
background-color: #006687;
}
.bg-success {
background-color: #dff0d8;
}
a.bg-success:hover {
background-color: #c1e2b3;
}
.bg-info {
background-color: #d9edf7;
}
a.bg-info:hover {
background-color: #afd9ee;
}
.bg-warning {
background-color: #fcf8e3;
}
a.bg-warning:hover {
background-color: #f7ecb5;
}
.bg-danger {
background-color: #f2dede;
}
a.bg-danger:hover {
background-color: #e4b9b9;
}
.page-header {
padding-bottom: 9.5px;
margin: 42px 0 21px;
border-bottom: 1px solid #dddddd;
}
ul,
ol {
margin-top: 0;
margin-bottom: 10.5px;
}
ul ul,
ol ul,
ul ol,
ol ol {
margin-bottom: 0;
}
.list-unstyled {
padding-left: 0;
list-style: none;
}
.list-inline {
padding-left: 0;
list-style: none;
margin-left: -5px;
}
.list-inline > li {
display: inline-block;
padding-left: 5px;
padding-right: 5px;
}
dl {
margin-top: 0;
margin-bottom: 21px;
}
dt,
dd {
line-height: 1.4;
}
dt {
font-weight: bold;
}
dd {
margin-left: 0;
}
@media (min-width: 768px) {
.dl-horizontal dt {
float: left;
width: 160px;
clear: left;
text-align: right;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.dl-horizontal dd {
margin-left: 180px;
}
}
abbr[title],
abbr[data-original-title] {
cursor: help;
border-bottom: 1px dotted #999999;
}
.initialism {
font-size: 90%;
text-transform: uppercase;
}
blockquote {
padding: 10.5px 21px;
margin: 0 0 21px;
font-size: 18.75px;
border-left: 5px solid #dddddd;
}
blockquote p:last-child,
blockquote ul:last-child,
blockquote ol:last-child {
margin-bottom: 0;
}
blockquote footer,
blockquote small,
blockquote .small {
display: block;
font-size: 80%;
line-height: 1.4;
color: #6f6f6f;
}
blockquote footer:before,
blockquote small:before,
blockquote .small:before {
content: '\2014 \00A0';
}
.blockquote-reverse,
blockquote.pull-right {
padding-right: 15px;
padding-left: 0;
border-right: 5px solid #dddddd;
border-left: 0;
text-align: right;
}
.blockquote-reverse footer:before,
blockquote.pull-right footer:before,
.blockquote-reverse small:before,
blockquote.pull-right small:before,
.blockquote-reverse .small:before,
blockquote.pull-right .small:before {
content: '';
}
.blockquote-reverse footer:after,
blockquote.pull-right footer:after,
.blockquote-reverse small:after,
blockquote.pull-right small:after,
.blockquote-reverse .small:after,
blockquote.pull-right .small:after {
content: '\00A0 \2014';
}
address {
margin-bottom: 21px;
font-style: normal;
line-height: 1.4;
}
code,
kbd,
pre,
samp {
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
}
code {
padding: 2px 4px;
font-size: 90%;
color: #c7254e;
background-color: #f9f2f4;
border-radius: 0;
}
kbd {
padding: 2px 4px;
font-size: 90%;
color: #ffffff;
background-color: #333333;
border-radius: 0;
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}
kbd kbd {
padding: 0;
font-size: 100%;
font-weight: bold;
box-shadow: none;
}
pre {
display: block;
padding: 10px;
margin: 0 0 10.5px;
font-size: 14px;
line-height: 1.4;
word-break: break-all;
word-wrap: break-word;
color: #333333;
background-color: #f5f5f5;
border: 1px solid #cccccc;
border-radius: 0;
}
pre code {
padding: 0;
font-size: inherit;
color: inherit;
white-space: pre-wrap;
background-color: transparent;
border-radius: 0;
}
.pre-scrollable {
max-height: 340px;
overflow-y: scroll;
}
.container {
margin-right: auto;
margin-left: auto;
padding-left: 15px;
padding-right: 15px;
}
@media (min-width: 768px) {
.container {
width: 750px;
}
}
@media (min-width: 992px) {
.container {
width: 970px;
}
}
@media (min-width: 1200px) {
.container {
width: 1170px;
}
}
.container-fluid {
margin-right: auto;
margin-left: auto;
padding-left: 15px;
padding-right: 15px;
}
.row {
margin-left: -15px;
margin-right: -15px;
}
.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
position: relative;
min-height: 1px;
padding-left: 15px;
padding-right: 15px;
}
.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 {
float: left;
}
.col-xs-12 {
width: 100%;
}
.col-xs-11 {
width: 91.66666667%;
}
.col-xs-10 {
width: 83.33333333%;
}
.col-xs-9 {
width: 75%;
}
.col-xs-8 {
width: 66.66666667%;
}
.col-xs-7 {
width: 58.33333333%;
}
.col-xs-6 {
width: 50%;
}
.col-xs-5 {
width: 41.66666667%;
}
.col-xs-4 {
width: 33.33333333%;
}
.col-xs-3 {
width: 25%;
}
.col-xs-2 {
width: 16.66666667%;
}
.col-xs-1 {
width: 8.33333333%;
}
.col-xs-pull-12 {
right: 100%;
}
.col-xs-pull-11 {
right: 91.66666667%;
}
.col-xs-pull-10 {
right: 83.33333333%;
}
.col-xs-pull-9 {
right: 75%;
}
.col-xs-pull-8 {
right: 66.66666667%;
}
.col-xs-pull-7 {
right: 58.33333333%;
}
.col-xs-pull-6 {
right: 50%;
}
.col-xs-pull-5 {
right: 41.66666667%;
}
.col-xs-pull-4 {
right: 33.33333333%;
}
.col-xs-pull-3 {
right: 25%;
}
.col-xs-pull-2 {
right: 16.66666667%;
}
.col-xs-pull-1 {
right: 8.33333333%;
}
.col-xs-pull-0 {
right: auto;
}
.col-xs-push-12 {
left: 100%;
}
.col-xs-push-11 {
left: 91.66666667%;
}
.col-xs-push-10 {
left: 83.33333333%;
}
.col-xs-push-9 {
left: 75%;
}
.col-xs-push-8 {
left: 66.66666667%;
}
.col-xs-push-7 {
left: 58.33333333%;
}
.col-xs-push-6 {
left: 50%;
}
.col-xs-push-5 {
left: 41.66666667%;
}
.col-xs-push-4 {
left: 33.33333333%;
}
.col-xs-push-3 {
left: 25%;
}
.col-xs-push-2 {
left: 16.66666667%;
}
.col-xs-push-1 {
left: 8.33333333%;
}
.col-xs-push-0 {
left: auto;
}
.col-xs-offset-12 {
margin-left: 100%;
}
.col-xs-offset-11 {
margin-left: 91.66666667%;
}
.col-xs-offset-10 {
margin-left: 83.33333333%;
}
.col-xs-offset-9 {
margin-left: 75%;
}
.col-xs-offset-8 {
margin-left: 66.66666667%;
}
.col-xs-offset-7 {
margin-left: 58.33333333%;
}
.col-xs-offset-6 {
margin-left: 50%;
}
.col-xs-offset-5 {
margin-left: 41.66666667%;
}
.col-xs-offset-4 {
margin-left: 33.33333333%;
}
.col-xs-offset-3 {
margin-left: 25%;
}
.col-xs-offset-2 {
margin-left: 16.66666667%;
}
.col-xs-offset-1 {
margin-left: 8.33333333%;
}
.col-xs-offset-0 {
margin-left: 0%;
}
@media (min-width: 768px) {
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
float: left;
}
.col-sm-12 {
width: 100%;
}
.col-sm-11 {
width: 91.66666667%;
}
.col-sm-10 {
width: 83.33333333%;
}
.col-sm-9 {
width: 75%;
}
.col-sm-8 {
width: 66.66666667%;
}
.col-sm-7 {
width: 58.33333333%;
}
.col-sm-6 {
width: 50%;
}
.col-sm-5 {
width: 41.66666667%;
}
.col-sm-4 {
width: 33.33333333%;
}
.col-sm-3 {
width: 25%;
}
.col-sm-2 {
width: 16.66666667%;
}
.col-sm-1 {
width: 8.33333333%;
}
.col-sm-pull-12 {
right: 100%;
}
.col-sm-pull-11 {
right: 91.66666667%;
}
.col-sm-pull-10 {
right: 83.33333333%;
}
.col-sm-pull-9 {
right: 75%;
}
.col-sm-pull-8 {
right: 66.66666667%;
}
.col-sm-pull-7 {
right: 58.33333333%;
}
.col-sm-pull-6 {
right: 50%;
}
.col-sm-pull-5 {
right: 41.66666667%;
}
.col-sm-pull-4 {
right: 33.33333333%;
}
.col-sm-pull-3 {
right: 25%;
}
.col-sm-pull-2 {
right: 16.66666667%;
}
.col-sm-pull-1 {
right: 8.33333333%;
}
.col-sm-pull-0 {
right: auto;
}
.col-sm-push-12 {
left: 100%;
}
.col-sm-push-11 {
left: 91.66666667%;
}
.col-sm-push-10 {
left: 83.33333333%;
}
.col-sm-push-9 {
left: 75%;
}
.col-sm-push-8 {
left: 66.66666667%;
}
.col-sm-push-7 {
left: 58.33333333%;
}
.col-sm-push-6 {
left: 50%;
}
.col-sm-push-5 {
left: 41.66666667%;
}
.col-sm-push-4 {
left: 33.33333333%;
}
.col-sm-push-3 {
left: 25%;
}
.col-sm-push-2 {
left: 16.66666667%;
}
.col-sm-push-1 {
left: 8.33333333%;
}
.col-sm-push-0 {
left: auto;
}
.col-sm-offset-12 {
margin-left: 100%;
}
.col-sm-offset-11 {
margin-left: 91.66666667%;
}
.col-sm-offset-10 {
margin-left: 83.33333333%;
}
.col-sm-offset-9 {
margin-left: 75%;
}
.col-sm-offset-8 {
margin-left: 66.66666667%;
}
.col-sm-offset-7 {
margin-left: 58.33333333%;
}
.col-sm-offset-6 {
margin-left: 50%;
}
.col-sm-offset-5 {
margin-left: 41.66666667%;
}
.col-sm-offset-4 {
margin-left: 33.33333333%;
}
.col-sm-offset-3 {
margin-left: 25%;
}
.col-sm-offset-2 {
margin-left: 16.66666667%;
}
.col-sm-offset-1 {
margin-left: 8.33333333%;
}
.col-sm-offset-0 {
margin-left: 0%;
}
}
@media (min-width: 992px) {
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
float: left;
}
.col-md-12 {
width: 100%;
}
.col-md-11 {
width: 91.66666667%;
}
.col-md-10 {
width: 83.33333333%;
}
.col-md-9 {
width: 75%;
}
.col-md-8 {
width: 66.66666667%;
}
.col-md-7 {
width: 58.33333333%;
}
.col-md-6 {
width: 50%;
}
.col-md-5 {
width: 41.66666667%;
}
.col-md-4 {
width: 33.33333333%;
}
.col-md-3 {
width: 25%;
}
.col-md-2 {
width: 16.66666667%;
}
.col-md-1 {
width: 8.33333333%;
}
.col-md-pull-12 {
right: 100%;
}
.col-md-pull-11 {
right: 91.66666667%;
}
.col-md-pull-10 {
right: 83.33333333%;
}
.col-md-pull-9 {
right: 75%;
}
.col-md-pull-8 {
right: 66.66666667%;
}
.col-md-pull-7 {
right: 58.33333333%;
}
.col-md-pull-6 {
right: 50%;
}
.col-md-pull-5 {
right: 41.66666667%;
}
.col-md-pull-4 {
right: 33.33333333%;
}
.col-md-pull-3 {
right: 25%;
}
.col-md-pull-2 {
right: 16.66666667%;
}
.col-md-pull-1 {
right: 8.33333333%;
}
.col-md-pull-0 {
right: auto;
}
.col-md-push-12 {
left: 100%;
}
.col-md-push-11 {
left: 91.66666667%;
}
.col-md-push-10 {
left: 83.33333333%;
}
.col-md-push-9 {
left: 75%;
}
.col-md-push-8 {
left: 66.66666667%;
}
.col-md-push-7 {
left: 58.33333333%;
}
.col-md-push-6 {
left: 50%;
}
.col-md-push-5 {
left: 41.66666667%;
}
.col-md-push-4 {
left: 33.33333333%;
}
.col-md-push-3 {
left: 25%;
}
.col-md-push-2 {
left: 16.66666667%;
}
.col-md-push-1 {
left: 8.33333333%;
}
.col-md-push-0 {
left: auto;
}
.col-md-offset-12 {
margin-left: 100%;
}
.col-md-offset-11 {
margin-left: 91.66666667%;
}
.col-md-offset-10 {
margin-left: 83.33333333%;
}
.col-md-offset-9 {
margin-left: 75%;
}
.col-md-offset-8 {
margin-left: 66.66666667%;
}
.col-md-offset-7 {
margin-left: 58.33333333%;
}
.col-md-offset-6 {
margin-left: 50%;
}
.col-md-offset-5 {
margin-left: 41.66666667%;
}
.col-md-offset-4 {
margin-left: 33.33333333%;
}
.col-md-offset-3 {
margin-left: 25%;
}
.col-md-offset-2 {
margin-left: 16.66666667%;
}
.col-md-offset-1 {
margin-left: 8.33333333%;
}
.col-md-offset-0 {
margin-left: 0%;
}
}
@media (min-width: 1200px) {
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
float: left;
}
.col-lg-12 {
width: 100%;
}
.col-lg-11 {
width: 91.66666667%;
}
.col-lg-10 {
width: 83.33333333%;
}
.col-lg-9 {
width: 75%;
}
.col-lg-8 {
width: 66.66666667%;
}
.col-lg-7 {
width: 58.33333333%;
}
.col-lg-6 {
width: 50%;
}
.col-lg-5 {
width: 41.66666667%;
}
.col-lg-4 {
width: 33.33333333%;
}
.col-lg-3 {
width: 25%;
}
.col-lg-2 {
width: 16.66666667%;
}
.col-lg-1 {
width: 8.33333333%;
}
.col-lg-pull-12 {
right: 100%;
}
.col-lg-pull-11 {
right: 91.66666667%;
}
.col-lg-pull-10 {
right: 83.33333333%;
}
.col-lg-pull-9 {
right: 75%;
}
.col-lg-pull-8 {
right: 66.66666667%;
}
.col-lg-pull-7 {
right: 58.33333333%;
}
.col-lg-pull-6 {
right: 50%;
}
.col-lg-pull-5 {
right: 41.66666667%;
}
.col-lg-pull-4 {
right: 33.33333333%;
}
.col-lg-pull-3 {
right: 25%;
}
.col-lg-pull-2 {
right: 16.66666667%;
}
.col-lg-pull-1 {
right: 8.33333333%;
}
.col-lg-pull-0 {
right: auto;
}
.col-lg-push-12 {
left: 100%;
}
.col-lg-push-11 {
left: 91.66666667%;
}
.col-lg-push-10 {
left: 83.33333333%;
}
.col-lg-push-9 {
left: 75%;
}
.col-lg-push-8 {
left: 66.66666667%;
}
.col-lg-push-7 {
left: 58.33333333%;
}
.col-lg-push-6 {
left: 50%;
}
.col-lg-push-5 {
left: 41.66666667%;
}
.col-lg-push-4 {
left: 33.33333333%;
}
.col-lg-push-3 {
left: 25%;
}
.col-lg-push-2 {
left: 16.66666667%;
}
.col-lg-push-1 {
left: 8.33333333%;
}
.col-lg-push-0 {
left: auto;
}
.col-lg-offset-12 {
margin-left: 100%;
}
.col-lg-offset-11 {
margin-left: 91.66666667%;
}
.col-lg-offset-10 {
margin-left: 83.33333333%;
}
.col-lg-offset-9 {
margin-left: 75%;
}
.col-lg-offset-8 {
margin-left: 66.66666667%;
}
.col-lg-offset-7 {
margin-left: 58.33333333%;
}
.col-lg-offset-6 {
margin-left: 50%;
}
.col-lg-offset-5 {
margin-left: 41.66666667%;
}
.col-lg-offset-4 {
margin-left: 33.33333333%;
}
.col-lg-offset-3 {
margin-left: 25%;
}
.col-lg-offset-2 {
margin-left: 16.66666667%;
}
.col-lg-offset-1 {
margin-left: 8.33333333%;
}
.col-lg-offset-0 {
margin-left: 0%;
}
}
table {
background-color: transparent;
}
caption {
padding-top: 8px;
padding-bottom: 8px;
color: #999999;
text-align: left;
}
th {
text-align: left;
}
.table {
width: 100%;
max-width: 100%;
margin-bottom: 21px;
}
.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
padding: 8px;
line-height: 1.4;
vertical-align: top;
border-top: 1px solid #dddddd;
}
.table > thead > tr > th {
vertical-align: bottom;
border-bottom: 2px solid #dddddd;
}
.table > caption + thead > tr:first-child > th,
.table > colgroup + thead > tr:first-child > th,
.table > thead:first-child > tr:first-child > th,
.table > caption + thead > tr:first-child > td,
.table > colgroup + thead > tr:first-child > td,
.table > thead:first-child > tr:first-child > td {
border-top: 0;
}
.table > tbody + tbody {
border-top: 2px solid #dddddd;
}
.table .table {
background-color: #ffffff;
}
.table-condensed > thead > tr > th,
.table-condensed > tbody > tr > th,
.table-condensed > tfoot > tr > th,
.table-condensed > thead > tr > td,
.table-condensed > tbody > tr > td,
.table-condensed > tfoot > tr > td {
padding: 5px;
}
.table-bordered {
border: 1px solid #dddddd;
}
.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > th,
.table-bordered > tfoot > tr > th,
.table-bordered > thead > tr > td,
.table-bordered > tbody > tr > td,
.table-bordered > tfoot > tr > td {
border: 1px solid #dddddd;
}
.table-bordered > thead > tr > th,
.table-bordered > thead > tr > td {
border-bottom-width: 2px;
}
.table-striped > tbody > tr:nth-of-type(odd) {
background-color: #f9f9f9;
}
.table-hover > tbody > tr:hover {
background-color: #f5f5f5;
}
table col[class*="col-"] {
position: static;
float: none;
display: table-column;
}
table td[class*="col-"],
table th[class*="col-"] {
position: static;
float: none;
display: table-cell;
}
.table > thead > tr > td.active,
.table > tbody > tr > td.active,
.table > tfoot > tr > td.active,
.table > thead > tr > th.active,
.table > tbody > tr > th.active,
.table > tfoot > tr > th.active,
.table > thead > tr.active > td,
.table > tbody > tr.active > td,
.table > tfoot > tr.active > td,
.table > thead > tr.active > th,
.table > tbody > tr.active > th,
.table > tfoot > tr.active > th {
background-color: #f5f5f5;
}
.table-hover > tbody > tr > td.active:hover,
.table-hover > tbody > tr > th.active:hover,
.table-hover > tbody > tr.active:hover > td,
.table-hover > tbody > tr:hover > .active,
.table-hover > tbody > tr.active:hover > th {
background-color: #e8e8e8;
}
.table > thead > tr > td.success,
.table > tbody > tr > td.success,
.table > tfoot > tr > td.success,
.table > thead > tr > th.success,
.table > tbody > tr > th.success,
.table > tfoot > tr > th.success,
.table > thead > tr.success > td,
.table > tbody > tr.success > td,
.table > tfoot > tr.success > td,
.table > thead > tr.success > th,
.table > tbody > tr.success > th,
.table > tfoot > tr.success > th {
background-color: #dff0d8;
}
.table-hover > tbody > tr > td.success:hover,
.table-hover > tbody > tr > th.success:hover,
.table-hover > tbody > tr.success:hover > td,
.table-hover > tbody > tr:hover > .success,
.table-hover > tbody > tr.success:hover > th {
background-color: #d0e9c6;
}
.table > thead > tr > td.info,
.table > tbody > tr > td.info,
.table > tfoot > tr > td.info,
.table > thead > tr > th.info,
.table > tbody > tr > th.info,
.table > tfoot > tr > th.info,
.table > thead > tr.info > td,
.table > tbody > tr.info > td,
.table > tfoot > tr.info > td,
.table > thead > tr.info > th,
.table > tbody > tr.info > th,
.table > tfoot > tr.info > th {
background-color: #d9edf7;
}
.table-hover > tbody > tr > td.info:hover,
.table-hover > tbody > tr > th.info:hover,
.table-hover > tbody > tr.info:hover > td,
.table-hover > tbody > tr:hover > .info,
.table-hover > tbody > tr.info:hover > th {
background-color: #c4e3f3;
}
.table > thead > tr > td.warning,
.table > tbody > tr > td.warning,
.table > tfoot > tr > td.warning,
.table > thead > tr > th.warning,
.table > tbody > tr > th.warning,
.table > tfoot > tr > th.warning,
.table > thead > tr.warning > td,
.table > tbody > tr.warning > td,
.table > tfoot > tr.warning > td,
.table > thead > tr.warning > th,
.table > tbody > tr.warning > th,
.table > tfoot > tr.warning > th {
background-color: #fcf8e3;
}
.table-hover > tbody > tr > td.warning:hover,
.table-hover > tbody > tr > th.warning:hover,
.table-hover > tbody > tr.warning:hover > td,
.table-hover > tbody > tr:hover > .warning,
.table-hover > tbody > tr.warning:hover > th {
background-color: #faf2cc;
}
.table > thead > tr > td.danger,
.table > tbody > tr > td.danger,
.table > tfoot > tr > td.danger,
.table > thead > tr > th.danger,
.table > tbody > tr > th.danger,
.table > tfoot > tr > th.danger,
.table > thead > tr.danger > td,
.table > tbody > tr.danger > td,
.table > tfoot > tr.danger > td,
.table > thead > tr.danger > th,
.table > tbody > tr.danger > th,
.table > tfoot > tr.danger > th {
background-color: #f2dede;
}
.table-hover > tbody > tr > td.danger:hover,
.table-hover > tbody > tr > th.danger:hover,
.table-hover > tbody > tr.danger:hover > td,
.table-hover > tbody > tr:hover > .danger,
.table-hover > tbody > tr.danger:hover > th {
background-color: #ebcccc;
}
.table-responsive {
overflow-x: auto;
min-height: 0.01%;
}
@media screen and (max-width: 767px) {
.table-responsive {
width: 100%;
margin-bottom: 15.75px;
overflow-y: hidden;
-ms-overflow-style: -ms-autohiding-scrollbar;
border: 1px solid #dddddd;
}
.table-responsive > .table {
margin-bottom: 0;
}
.table-responsive > .table > thead > tr > th,
.table-responsive > .table > tbody > tr > th,
.table-responsive > .table > tfoot > tr > th,
.table-responsive > .table > thead > tr > td,
.table-responsive > .table > tbody > tr > td,
.table-responsive > .table > tfoot > tr > td {
white-space: nowrap;
}
.table-responsive > .table-bordered {
border: 0;
}
.table-responsive > .table-bordered > thead > tr > th:first-child,
.table-responsive > .table-bordered > tbody > tr > th:first-child,
.table-responsive > .table-bordered > tfoot > tr > th:first-child,
.table-responsive > .table-bordered > thead > tr > td:first-child,
.table-responsive > .table-bordered > tbody > tr > td:first-child,
.table-responsive > .table-bordered > tfoot > tr > td:first-child {
border-left: 0;
}
.table-responsive > .table-bordered > thead > tr > th:last-child,
.table-responsive > .table-bordered > tbody > tr > th:last-child,
.table-responsive > .table-bordered > tfoot > tr > th:last-child,
.table-responsive > .table-bordered > thead > tr > td:last-child,
.table-responsive > .table-bordered > tbody > tr > td:last-child,
.table-responsive > .table-bordered > tfoot > tr > td:last-child {
border-right: 0;
}
.table-responsive > .table-bordered > tbody > tr:last-child > th,
.table-responsive > .table-bordered > tfoot > tr:last-child > th,
.table-responsive > .table-bordered > tbody > tr:last-child > td,
.table-responsive > .table-bordered > tfoot > tr:last-child > td {
border-bottom: 0;
}
}
fieldset {
padding: 0;
margin: 0;
border: 0;
min-width: 0;
}
legend {
display: block;
width: 100%;
padding: 0;
margin-bottom: 21px;
font-size: 22.5px;
line-height: inherit;
color: #333333;
border: 0;
border-bottom: 1px solid #e5e5e5;
}
label {
display: inline-block;
max-width: 100%;
margin-bottom: 5px;
font-weight: bold;
}
input[type="search"] {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
input[type="radio"],
input[type="checkbox"] {
margin: 4px 0 0;
margin-top: 1px \9;
line-height: normal;
}
input[type="file"] {
display: block;
}
input[type="range"] {
display: block;
width: 100%;
}
select[multiple],
select[size] {
height: auto;
}
input[type="file"]:focus,
input[type="radio"]:focus,
input[type="checkbox"]:focus {
outline: thin dotted;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}
output {
display: block;
padding-top: 9px;
font-size: 15px;
line-height: 1.4;
color: #6f6f6f;
}
.form-control {
display: block;
width: 100%;
height: 39px;
padding: 8px 12px;
font-size: 15px;
line-height: 1.4;
color: #6f6f6f;
background-color: #ffffff;
background-image: none;
border: 1px solid #cccccc;
border-radius: 0;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
-webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
-o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}
.form-control:focus {
border-color: #66afe9;
outline: 0;
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
}
.form-control::-moz-placeholder {
color: #999999;
opacity: 1;
}
.form-control:-ms-input-placeholder {
color: #999999;
}
.form-control::-webkit-input-placeholder {
color: #999999;
}
.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control {
background-color: #eeeeee;
opacity: 1;
}
.form-control[disabled],
fieldset[disabled] .form-control {
cursor: not-allowed;
}
textarea.form-control {
height: auto;
}
input[type="search"] {
-webkit-appearance: none;
}
@media screen and (-webkit-min-device-pixel-ratio: 0) {
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"] {
line-height: 39px;
}
input[type="date"].input-sm,
input[type="time"].input-sm,
input[type="datetime-local"].input-sm,
input[type="month"].input-sm,
.input-group-sm input[type="date"],
.input-group-sm input[type="time"],
.input-group-sm input[type="datetime-local"],
.input-group-sm input[type="month"] {
line-height: 36px;
}
input[type="date"].input-lg,
input[type="time"].input-lg,
input[type="datetime-local"].input-lg,
input[type="month"].input-lg,
.input-group-lg input[type="date"],
.input-group-lg input[type="time"],
.input-group-lg input[type="datetime-local"],
.input-group-lg input[type="month"] {
line-height: 60px;
}
}
.form-group {
margin-bottom: 15px;
}
.radio,
.checkbox {
position: relative;
display: block;
margin-top: 10px;
margin-bottom: 10px;
}
.radio label,
.checkbox label {
min-height: 21px;
padding-left: 20px;
margin-bottom: 0;
font-weight: normal;
cursor: pointer;
}
.radio input[type="radio"],
.radio-inline input[type="radio"],
.checkbox input[type="checkbox"],
.checkbox-inline input[type="checkbox"] {
position: absolute;
margin-left: -20px;
margin-top: 4px \9;
}
.radio + .radio,
.checkbox + .checkbox {
margin-top: -5px;
}
.radio-inline,
.checkbox-inline {
position: relative;
display: inline-block;
padding-left: 20px;
margin-bottom: 0;
vertical-align: middle;
font-weight: normal;
cursor: pointer;
}
.radio-inline + .radio-inline,
.checkbox-inline + .checkbox-inline {
margin-top: 0;
margin-left: 10px;
}
input[type="radio"][disabled],
input[type="checkbox"][disabled],
input[type="radio"].disabled,
input[type="checkbox"].disabled,
fieldset[disabled] input[type="radio"],
fieldset[disabled] input[type="checkbox"] {
cursor: not-allowed;
}
.radio-inline.disabled,
.checkbox-inline.disabled,
fieldset[disabled] .radio-inline,
fieldset[disabled] .checkbox-inline {
cursor: not-allowed;
}
.radio.disabled label,
.checkbox.disabled label,
fieldset[disabled] .radio label,
fieldset[disabled] .checkbox label {
cursor: not-allowed;
}
.form-control-static {
padding-top: 9px;
padding-bottom: 9px;
margin-bottom: 0;
min-height: 36px;
}
.form-control-static.input-lg,
.form-control-static.input-sm {
padding-left: 0;
padding-right: 0;
}
.input-sm {
height: 36px;
padding: 8px 12px;
font-size: 12px;
line-height: 1.5;
border-radius: 0;
}
select.input-sm {
height: 36px;
line-height: 36px;
}
textarea.input-sm,
select[multiple].input-sm {
height: auto;
}
.form-group-sm .form-control {
height: 36px;
padding: 8px 12px;
font-size: 12px;
line-height: 1.5;
border-radius: 0;
}
select.form-group-sm .form-control {
height: 36px;
line-height: 36px;
}
textarea.form-group-sm .form-control,
select[multiple].form-group-sm .form-control {
height: auto;
}
.form-group-sm .form-control-static {
height: 36px;
padding: 8px 12px;
font-size: 12px;
line-height: 1.5;
min-height: 33px;
}
.input-lg {
height: 60px;
padding: 16px 20px;
font-size: 19px;
line-height: 1.33;
border-radius: 0;
}
select.input-lg {
height: 60px;
line-height: 60px;
}
textarea.input-lg,
select[multiple].input-lg {
height: auto;
}
.form-group-lg .form-control {
height: 60px;
padding: 16px 20px;
font-size: 19px;
line-height: 1.33;
border-radius: 0;
}
select.form-group-lg .form-control {
height: 60px;
line-height: 60px;
}
textarea.form-group-lg .form-control,
select[multiple].form-group-lg .form-control {
height: auto;
}
.form-group-lg .form-control-static {
height: 60px;
padding: 16px 20px;
font-size: 19px;
line-height: 1.33;
min-height: 40px;
}
.has-feedback {
position: relative;
}
.has-feedback .form-control {
padding-right: 48.75px;
}
.form-control-feedback {
position: absolute;
top: 0;
right: 0;
z-index: 2;
display: block;
width: 39px;
height: 39px;
line-height: 39px;
text-align: center;
pointer-events: none;
}
.input-lg + .form-control-feedback {
width: 60px;
height: 60px;
line-height: 60px;
}
.input-sm + .form-control-feedback {
width: 36px;
height: 36px;
line-height: 36px;
}
.has-success .help-block,
.has-success .control-label,
.has-success .radio,
.has-success .checkbox,
.has-success .radio-inline,
.has-success .checkbox-inline,
.has-success.radio label,
.has-success.checkbox label,
.has-success.radio-inline label,
.has-success.checkbox-inline label {
color: #43ac6a;
}
.has-success .form-control {
border-color: #43ac6a;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}
.has-success .form-control:focus {
border-color: #358753;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #85d0a1;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #85d0a1;
}
.has-success .input-group-addon {
color: #43ac6a;
border-color: #43ac6a;
background-color: #dff0d8;
}
.has-success .form-control-feedback {
color: #43ac6a;
}
.has-warning .help-block,
.has-warning .control-label,
.has-warning .radio,
.has-warning .checkbox,
.has-warning .radio-inline,
.has-warning .checkbox-inline,
.has-warning.radio label,
.has-warning.checkbox label,
.has-warning.radio-inline label,
.has-warning.checkbox-inline label {
color: #e99002;
}
.has-warning .form-control {
border-color: #e99002;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}
.has-warning .form-control:focus {
border-color: #b67102;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #febc53;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #febc53;
}
.has-warning .input-group-addon {
color: #e99002;
border-color: #e99002;
background-color: #fcf8e3;
}
.has-warning .form-control-feedback {
color: #e99002;
}
.has-error .help-block,
.has-error .control-label,
.has-error .radio,
.has-error .checkbox,
.has-error .radio-inline,
.has-error .checkbox-inline,
.has-error.radio label,
.has-error.checkbox label,
.has-error.radio-inline label,
.has-error.checkbox-inline label {
color: #f04124;
}
.has-error .form-control {
border-color: #f04124;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}
.has-error .form-control:focus {
border-color: #d32a0e;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #f79483;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #f79483;
}
.has-error .input-group-addon {
color: #f04124;
border-color: #f04124;
background-color: #f2dede;
}
.has-error .form-control-feedback {
color: #f04124;
}
.has-feedback label ~ .form-control-feedback {
top: 26px;
}
.has-feedback label.sr-only ~ .form-control-feedback {
top: 0;
}
.help-block {
display: block;
margin-top: 5px;
margin-bottom: 10px;
color: #626262;
}
@media (min-width: 768px) {
.form-inline .form-group {
display: inline-block;
margin-bottom: 0;
vertical-align: middle;
}
.form-inline .form-control {
display: inline-block;
width: auto;
vertical-align: middle;
}
.form-inline .form-control-static {
display: inline-block;
}
.form-inline .input-group {
display: inline-table;
vertical-align: middle;
}
.form-inline .input-group .input-group-addon,
.form-inline .input-group .input-group-btn,
.form-inline .input-group .form-control {
width: auto;
}
.form-inline .input-group > .form-control {
width: 100%;
}
.form-inline .control-label {
margin-bottom: 0;
vertical-align: middle;
}
.form-inline .radio,
.form-inline .checkbox {
display: inline-block;
margin-top: 0;
margin-bottom: 0;
vertical-align: middle;
}
.form-inline .radio label,
.form-inline .checkbox label {
padding-left: 0;
}
.form-inline .radio input[type="radio"],
.form-inline .checkbox input[type="checkbox"] {
position: relative;
margin-left: 0;
}
.form-inline .has-feedback .form-control-feedback {
top: 0;
}
}
.form-horizontal .radio,
.form-horizontal .checkbox,
.form-horizontal .radio-inline,
.form-horizontal .checkbox-inline {
margin-top: 0;
margin-bottom: 0;
padding-top: 9px;
}
.form-horizontal .radio,
.form-horizontal .checkbox {
min-height: 30px;
}
.form-horizontal .form-group {
margin-left: -15px;
margin-right: -15px;
}
@media (min-width: 768px) {
.form-horizontal .control-label {
text-align: right;
margin-bottom: 0;
padding-top: 9px;
}
}
.form-horizontal .has-feedback .form-control-feedback {
right: 15px;
}
@media (min-width: 768px) {
.form-horizontal .form-group-lg .control-label {
padding-top: 22.28px;
}
}
@media (min-width: 768px) {
.form-horizontal .form-group-sm .control-label {
padding-top: 9px;
}
}
.btn {
display: inline-block;
margin-bottom: 0;
font-weight: normal;
text-align: center;
vertical-align: middle;
touch-action: manipulation;
cursor: pointer;
background-image: none;
border: 1px solid transparent;
white-space: nowrap;
padding: 8px 12px;
font-size: 15px;
line-height: 1.4;
border-radius: 0;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.btn:focus,
.btn:active:focus,
.btn.active:focus,
.btn.focus,
.btn:active.focus,
.btn.active.focus {
outline: thin dotted;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}
.btn:hover,
.btn:focus,
.btn.focus {
color: #333333;
text-decoration: none;
}
.btn:active,
.btn.active {
outline: 0;
background-image: none;
-webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}
.btn.disabled,
.btn[disabled],
fieldset[disabled] .btn {
cursor: not-allowed;
pointer-events: none;
opacity: 0.65;
filter: alpha(opacity=65);
-webkit-box-shadow: none;
box-shadow: none;
}
.btn-default {
color: #333333;
background-color: #e7e7e7;
border-color: #cccccc;
}
.btn-default:hover,
.btn-default:focus,
.btn-default.focus,
.btn-default:active,
.btn-default.active,
.open > .dropdown-toggle.btn-default {
color: #333333;
background-color: #cecece;
border-color: #adadad;
}
.btn-default:active,
.btn-default.active,
.open > .dropdown-toggle.btn-default {
background-image: none;
}
.btn-default.disabled,
.btn-default[disabled],
fieldset[disabled] .btn-default,
.btn-default.disabled:hover,
.btn-default[disabled]:hover,
fieldset[disabled] .btn-default:hover,
.btn-default.disabled:focus,
.btn-default[disabled]:focus,
fieldset[disabled] .btn-default:focus,
.btn-default.disabled.focus,
.btn-default[disabled].focus,
fieldset[disabled] .btn-default.focus,
.btn-default.disabled:active,
.btn-default[disabled]:active,
fieldset[disabled] .btn-default:active,
.btn-default.disabled.active,
.btn-default[disabled].active,
fieldset[disabled] .btn-default.active {
background-color: #e7e7e7;
border-color: #cccccc;
}
.btn-default .badge {
color: #e7e7e7;
background-color: #333333;
}
.btn-primary {
color: #ffffff;
background-color: #008cba;
border-color: #0079a1;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary.focus,
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
color: #ffffff;
background-color: #006687;
border-color: #004b63;
}
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
background-image: none;
}
.btn-primary.disabled,
.btn-primary[disabled],
fieldset[disabled] .btn-primary,
.btn-primary.disabled:hover,
.btn-primary[disabled]:hover,
fieldset[disabled] .btn-primary:hover,
.btn-primary.disabled:focus,
.btn-primary[disabled]:focus,
fieldset[disabled] .btn-primary:focus,
.btn-primary.disabled.focus,
.btn-primary[disabled].focus,
fieldset[disabled] .btn-primary.focus,
.btn-primary.disabled:active,
.btn-primary[disabled]:active,
fieldset[disabled] .btn-primary:active,
.btn-primary.disabled.active,
.btn-primary[disabled].active,
fieldset[disabled] .btn-primary.active {
background-color: #008cba;
border-color: #0079a1;
}
.btn-primary .badge {
color: #008cba;
background-color: #ffffff;
}
.btn-success {
color: #ffffff;
background-color: #43ac6a;
border-color: #3c9a5f;
}
.btn-success:hover,
.btn-success:focus,
.btn-success.focus,
.btn-success:active,
.btn-success.active,
.open > .dropdown-toggle.btn-success {
color: #ffffff;
background-color: #358753;
border-color: #2b6e44;
}
.btn-success:active,
.btn-success.active,
.open > .dropdown-toggle.btn-success {
background-image: none;
}
.btn-success.disabled,
.btn-success[disabled],
fieldset[disabled] .btn-success,
.btn-success.disabled:hover,
.btn-success[disabled]:hover,
fieldset[disabled] .btn-success:hover,
.btn-success.disabled:focus,
.btn-success[disabled]:focus,
fieldset[disabled] .btn-success:focus,
.btn-success.disabled.focus,
.btn-success[disabled].focus,
fieldset[disabled] .btn-success.focus,
.btn-success.disabled:active,
.btn-success[disabled]:active,
fieldset[disabled] .btn-success:active,
.btn-success.disabled.active,
.btn-success[disabled].active,
fieldset[disabled] .btn-success.active {
background-color: #43ac6a;
border-color: #3c9a5f;
}
.btn-success .badge {
color: #43ac6a;
background-color: #ffffff;
}
.btn-info {
color: #ffffff;
background-color: #5bc0de;
border-color: #46b8da;
}
.btn-info:hover,
.btn-info:focus,
.btn-info.focus,
.btn-info:active,
.btn-info.active,
.open > .dropdown-toggle.btn-info {
color: #ffffff;
background-color: #31b0d5;
border-color: #269abc;
}
.btn-info:active,
.btn-info.active,
.open > .dropdown-toggle.btn-info {
background-image: none;
}
.btn-info.disabled,
.btn-info[disabled],
fieldset[disabled] .btn-info,
.btn-info.disabled:hover,
.btn-info[disabled]:hover,
fieldset[disabled] .btn-info:hover,
.btn-info.disabled:focus,
.btn-info[disabled]:focus,
fieldset[disabled] .btn-info:focus,
.btn-info.disabled.focus,
.btn-info[disabled].focus,
fieldset[disabled] .btn-info.focus,
.btn-info.disabled:active,
.btn-info[disabled]:active,
fieldset[disabled] .btn-info:active,
.btn-info.disabled.active,
.btn-info[disabled].active,
fieldset[disabled] .btn-info.active {
background-color: #5bc0de;
border-color: #46b8da;
}
.btn-info .badge {
color: #5bc0de;
background-color: #ffffff;
}
.btn-warning {
color: #ffffff;
background-color: #e99002;
border-color: #d08002;
}
.btn-warning:hover,
.btn-warning:focus,
.btn-warning.focus,
.btn-warning:active,
.btn-warning.active,
.open > .dropdown-toggle.btn-warning {
color: #ffffff;
background-color: #b67102;
border-color: #935b01;
}
.btn-warning:active,
.btn-warning.active,
.open > .dropdown-toggle.btn-warning {
background-image: none;
}
.btn-warning.disabled,
.btn-warning[disabled],
fieldset[disabled] .btn-warning,
.btn-warning.disabled:hover,
.btn-warning[disabled]:hover,
fieldset[disabled] .btn-warning:hover,
.btn-warning.disabled:focus,
.btn-warning[disabled]:focus,
fieldset[disabled] .btn-warning:focus,
.btn-warning.disabled.focus,
.btn-warning[disabled].focus,
fieldset[disabled] .btn-warning.focus,
.btn-warning.disabled:active,
.btn-warning[disabled]:active,
fieldset[disabled] .btn-warning:active,
.btn-warning.disabled.active,
.btn-warning[disabled].active,
fieldset[disabled] .btn-warning.active {
background-color: #e99002;
border-color: #d08002;
}
.btn-warning .badge {
color: #e99002;
background-color: #ffffff;
}
.btn-danger {
color: #ffffff;
background-color: #f04124;
border-color: #ea2f10;
}
.btn-danger:hover,
.btn-danger:focus,
.btn-danger.focus,
.btn-danger:active,
.btn-danger.active,
.open > .dropdown-toggle.btn-danger {
color: #ffffff;
background-color: #d32a0e;
border-color: #b1240c;
}
.btn-danger:active,
.btn-danger.active,
.open > .dropdown-toggle.btn-danger {
background-image: none;
}
.btn-danger.disabled,
.btn-danger[disabled],
fieldset[disabled] .btn-danger,
.btn-danger.disabled:hover,
.btn-danger[disabled]:hover,
fieldset[disabled] .btn-danger:hover,
.btn-danger.disabled:focus,
.btn-danger[disabled]:focus,
fieldset[disabled] .btn-danger:focus,
.btn-danger.disabled.focus,
.btn-danger[disabled].focus,
fieldset[disabled] .btn-danger.focus,
.btn-danger.disabled:active,
.btn-danger[disabled]:active,
fieldset[disabled] .btn-danger:active,
.btn-danger.disabled.active,
.btn-danger[disabled].active,
fieldset[disabled] .btn-danger.active {
background-color: #f04124;
border-color: #ea2f10;
}
.btn-danger .badge {
color: #f04124;
background-color: #ffffff;
}
.btn-link {
color: #008cba;
font-weight: normal;
border-radius: 0;
}
.btn-link,
.btn-link:active,
.btn-link.active,
.btn-link[disabled],
fieldset[disabled] .btn-link {
background-color: transparent;
-webkit-box-shadow: none;
box-shadow: none;
}
.btn-link,
.btn-link:hover,
.btn-link:focus,
.btn-link:active {
border-color: transparent;
}
.btn-link:hover,
.btn-link:focus {
color: #00526e;
text-decoration: underline;
background-color: transparent;
}
.btn-link[disabled]:hover,
fieldset[disabled] .btn-link:hover,
.btn-link[disabled]:focus,
fieldset[disabled] .btn-link:focus {
color: #999999;
text-decoration: none;
}
.btn-lg,
.btn-group-lg > .btn {
padding: 16px 20px;
font-size: 19px;
line-height: 1.33;
border-radius: 0;
}
.btn-sm,
.btn-group-sm > .btn {
padding: 8px 12px;
font-size: 12px;
line-height: 1.5;
border-radius: 0;
}
.btn-xs,
.btn-group-xs > .btn {
padding: 4px 6px;
font-size: 12px;
line-height: 1.5;
border-radius: 0;
}
.btn-block {
display: block;
width: 100%;
}
.btn-block + .btn-block {
margin-top: 5px;
}
input[type="submit"].btn-block,
input[type="reset"].btn-block,
input[type="button"].btn-block {
width: 100%;
}
.fade {
opacity: 0;
-webkit-transition: opacity 0.15s linear;
-o-transition: opacity 0.15s linear;
transition: opacity 0.15s linear;
}
.fade.in {
opacity: 1;
}
.collapse {
display: none;
}
.collapse.in {
display: block;
}
tr.collapse.in {
display: table-row;
}
tbody.collapse.in {
display: table-row-group;
}
.collapsing {
position: relative;
height: 0;
overflow: hidden;
-webkit-transition-property: height, visibility;
transition-property: height, visibility;
-webkit-transition-duration: 0.35s;
transition-duration: 0.35s;
-webkit-transition-timing-function: ease;
transition-timing-function: ease;
}
.caret {
display: inline-block;
width: 0;
height: 0;
margin-left: 2px;
vertical-align: middle;
border-top: 4px dashed;
border-right: 4px solid transparent;
border-left: 4px solid transparent;
}
.dropup,
.dropdown {
position: relative;
}
.dropdown-toggle:focus {
outline: 0;
}
.dropdown-menu {
position: absolute;
top: 100%;
left: 0;
z-index: 1000;
display: none;
float: left;
min-width: 160px;
padding: 5px 0;
margin: 2px 0 0;
list-style: none;
font-size: 15px;
text-align: left;
background-color: #ffffff;
border: 1px solid #cccccc;
border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 0;
-webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
background-clip: padding-box;
}
.dropdown-menu.pull-right {
right: 0;
left: auto;
}
.dropdown-menu .divider {
height: 1px;
margin: 9.5px 0;
overflow: hidden;
background-color: rgba(0, 0, 0, 0.2);
}
.dropdown-menu > li > a {
display: block;
padding: 3px 20px;
clear: both;
font-weight: normal;
line-height: 1.4;
color: #555555;
white-space: nowrap;
}
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
text-decoration: none;
color: #262626;
background-color: #eeeeee;
}
.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
color: #ffffff;
text-decoration: none;
outline: 0;
background-color: #008cba;
}
.dropdown-menu > .disabled > a,
.dropdown-menu > .disabled > a:hover,
.dropdown-menu > .disabled > a:focus {
color: #999999;
}
.dropdown-menu > .disabled > a:hover,
.dropdown-menu > .disabled > a:focus {
text-decoration: none;
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
cursor: not-allowed;
}
.open > .dropdown-menu {
display: block;
}
.open > a {
outline: 0;
}
.dropdown-menu-right {
left: auto;
right: 0;
}
.dropdown-menu-left {
left: 0;
right: auto;
}
.dropdown-header {
display: block;
padding: 3px 20px;
font-size: 12px;
line-height: 1.4;
color: #999999;
white-space: nowrap;
}
.dropdown-backdrop {
position: fixed;
left: 0;
right: 0;
bottom: 0;
top: 0;
z-index: 990;
}
.pull-right > .dropdown-menu {
right: 0;
left: auto;
}
.dropup .caret,
.navbar-fixed-bottom .dropdown .caret {
border-top: 0;
border-bottom: 4px solid;
content: "";
}
.dropup .dropdown-menu,
.navbar-fixed-bottom .dropdown .dropdown-menu {
top: auto;
bottom: 100%;
margin-bottom: 2px;
}
@media (min-width: 768px) {
.navbar-right .dropdown-menu {
left: auto;
right: 0;
}
.navbar-right .dropdown-menu-left {
left: 0;
right: auto;
}
}
.btn-group,
.btn-group-vertical {
position: relative;
display: inline-block;
vertical-align: middle;
}
.btn-group > .btn,
.btn-group-vertical > .btn {
position: relative;
float: left;
}
.btn-group > .btn:hover,
.btn-group-vertical > .btn:hover,
.btn-group > .btn:focus,
.btn-group-vertical > .btn:focus,
.btn-group > .btn:active,
.btn-group-vertical > .btn:active,
.btn-group > .btn.active,
.btn-group-vertical > .btn.active {
z-index: 2;
}
.btn-group .btn + .btn,
.btn-group .btn + .btn-group,
.btn-group .btn-group + .btn,
.btn-group .btn-group + .btn-group {
margin-left: -1px;
}
.btn-toolbar {
margin-left: -5px;
}
.btn-toolbar .btn-group,
.btn-toolbar .input-group {
float: left;
}
.btn-toolbar > .btn,
.btn-toolbar > .btn-group,
.btn-toolbar > .input-group {
margin-left: 5px;
}
.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
border-radius: 0;
}
.btn-group > .btn:first-child {
margin-left: 0;
}
.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) {
border-bottom-right-radius: 0;
border-top-right-radius: 0;
}
.btn-group > .btn:last-child:not(:first-child),
.btn-group > .dropdown-toggle:not(:first-child) {
border-bottom-left-radius: 0;
border-top-left-radius: 0;
}
.btn-group > .btn-group {
float: left;
}
.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {
border-radius: 0;
}
.btn-group > .btn-group:first-child:not(:last-child) > .btn:last-child,
.btn-group > .btn-group:first-child:not(:last-child) > .dropdown-toggle {
border-bottom-right-radius: 0;
border-top-right-radius: 0;
}
.btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child {
border-bottom-left-radius: 0;
border-top-left-radius: 0;
}
.btn-group .dropdown-toggle:active,
.btn-group.open .dropdown-toggle {
outline: 0;
}
.btn-group > .btn + .dropdown-toggle {
padding-left: 8px;
padding-right: 8px;
}
.btn-group > .btn-lg + .dropdown-toggle {
padding-left: 12px;
padding-right: 12px;
}
.btn-group.open .dropdown-toggle {
-webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}
.btn-group.open .dropdown-toggle.btn-link {
-webkit-box-shadow: none;
box-shadow: none;
}
.btn .caret {
margin-left: 0;
}
.btn-lg .caret {
border-width: 5px 5px 0;
border-bottom-width: 0;
}
.dropup .btn-lg .caret {
border-width: 0 5px 5px;
}
.btn-group-vertical > .btn,
.btn-group-vertical > .btn-group,
.btn-group-vertical > .btn-group > .btn {
display: block;
float: none;
width: 100%;
max-width: 100%;
}
.btn-group-vertical > .btn-group > .btn {
float: none;
}
.btn-group-vertical > .btn + .btn,
.btn-group-vertical > .btn + .btn-group,
.btn-group-vertical > .btn-group + .btn,
.btn-group-vertical > .btn-group + .btn-group {
margin-top: -1px;
margin-left: 0;
}
.btn-group-vertical > .btn:not(:first-child):not(:last-child) {
border-radius: 0;
}
.btn-group-vertical > .btn:first-child:not(:last-child) {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
.btn-group-vertical > .btn:last-child:not(:first-child) {
border-bottom-left-radius: 0;
border-top-right-radius: 0;
border-top-left-radius: 0;
}
.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {
border-radius: 0;
}
.btn-group-vertical > .btn-group:first-child:not(:last-child) > .btn:last-child,
.btn-group-vertical > .btn-group:first-child:not(:last-child) > .dropdown-toggle {
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
.btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child {
border-top-right-radius: 0;
border-top-left-radius: 0;
}
.btn-group-justified {
display: table;
width: 100%;
table-layout: fixed;
border-collapse: separate;
}
.btn-group-justified > .btn,
.btn-group-justified > .btn-group {
float: none;
display: table-cell;
width: 1%;
}
.btn-group-justified > .btn-group .btn {
width: 100%;
}
.btn-group-justified > .btn-group .dropdown-menu {
left: auto;
}
[data-toggle="buttons"] > .btn input[type="radio"],
[data-toggle="buttons"] > .btn-group > .btn input[type="radio"],
[data-toggle="buttons"] > .btn input[type="checkbox"],
[data-toggle="buttons"] > .btn-group > .btn input[type="checkbox"] {
position: absolute;
clip: rect(0, 0, 0, 0);
pointer-events: none;
}
.input-group {
position: relative;
display: table;
border-collapse: separate;
}
.input-group[class*="col-"] {
float: none;
padding-left: 0;
padding-right: 0;
}
.input-group .form-control {
position: relative;
z-index: 2;
float: left;
width: 100%;
margin-bottom: 0;
}
.input-group-lg > .form-control,
.input-group-lg > .input-group-addon,
.input-group-lg > .input-group-btn > .btn {
height: 60px;
padding: 16px 20px;
font-size: 19px;
line-height: 1.33;
border-radius: 0;
}
select.input-group-lg > .form-control,
select.input-group-lg > .input-group-addon,
select.input-group-lg > .input-group-btn > .btn {
height: 60px;
line-height: 60px;
}
textarea.input-group-lg > .form-control,
textarea.input-group-lg > .input-group-addon,
textarea.input-group-lg > .input-group-btn > .btn,
select[multiple].input-group-lg > .form-control,
select[multiple].input-group-lg > .input-group-addon,
select[multiple].input-group-lg > .input-group-btn > .btn {
height: auto;
}
.input-group-sm > .form-control,
.input-group-sm > .input-group-addon,
.input-group-sm > .input-group-btn > .btn {
height: 36px;
padding: 8px 12px;
font-size: 12px;
line-height: 1.5;
border-radius: 0;
}
select.input-group-sm > .form-control,
select.input-group-sm > .input-group-addon,
select.input-group-sm > .input-group-btn > .btn {
height: 36px;
line-height: 36px;
}
textarea.input-group-sm > .form-control,
textarea.input-group-sm > .input-group-addon,
textarea.input-group-sm > .input-group-btn > .btn,
select[multiple].input-group-sm > .form-control,
select[multiple].input-group-sm > .input-group-addon,
select[multiple].input-group-sm > .input-group-btn > .btn {
height: auto;
}
.input-group-addon,
.input-group-btn,
.input-group .form-control {
display: table-cell;
}
.input-group-addon:not(:first-child):not(:last-child),
.input-group-btn:not(:first-child):not(:last-child),
.input-group .form-control:not(:first-child):not(:last-child) {
border-radius: 0;
}
.input-group-addon,
.input-group-btn {
width: 1%;
white-space: nowrap;
vertical-align: middle;
}
.input-group-addon {
padding: 8px 12px;
font-size: 15px;
font-weight: normal;
line-height: 1;
color: #6f6f6f;
text-align: center;
background-color: #eeeeee;
border: 1px solid #cccccc;
border-radius: 0;
}
.input-group-addon.input-sm {
padding: 8px 12px;
font-size: 12px;
border-radius: 0;
}
.input-group-addon.input-lg {
padding: 16px 20px;
font-size: 19px;
border-radius: 0;
}
.input-group-addon input[type="radio"],
.input-group-addon input[type="checkbox"] {
margin-top: 0;
}
.input-group .form-control:first-child,
.input-group-addon:first-child,
.input-group-btn:first-child > .btn,
.input-group-btn:first-child > .btn-group > .btn,
.input-group-btn:first-child > .dropdown-toggle,
.input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle),
.input-group-btn:last-child > .btn-group:not(:last-child) > .btn {
border-bottom-right-radius: 0;
border-top-right-radius: 0;
}
.input-group-addon:first-child {
border-right: 0;
}
.input-group .form-control:last-child,
.input-group-addon:last-child,
.input-group-btn:last-child > .btn,
.input-group-btn:last-child > .btn-group > .btn,
.input-group-btn:last-child > .dropdown-toggle,
.input-group-btn:first-child > .btn:not(:first-child),
.input-group-btn:first-child > .btn-group:not(:first-child) > .btn {
border-bottom-left-radius: 0;
border-top-left-radius: 0;
}
.input-group-addon:last-child {
border-left: 0;
}
.input-group-btn {
position: relative;
font-size: 0;
white-space: nowrap;
}
.input-group-btn > .btn {
position: relative;
}
.input-group-btn > .btn + .btn {
margin-left: -1px;
}
.input-group-btn > .btn:hover,
.input-group-btn > .btn:focus,
.input-group-btn > .btn:active {
z-index: 2;
}
.input-group-btn:first-child > .btn,
.input-group-btn:first-child > .btn-group {
margin-right: -1px;
}
.input-group-btn:last-child > .btn,
.input-group-btn:last-child > .btn-group {
margin-left: -1px;
}
.nav {
margin-bottom: 0;
padding-left: 0;
list-style: none;
}
.nav > li {
position: relative;
display: block;
}
.nav > li > a {
position: relative;
display: block;
padding: 10px 15px;
}
.nav > li > a:hover,
.nav > li > a:focus {
text-decoration: none;
background-color: #eeeeee;
}
.nav > li.disabled > a {
color: #999999;
}
.nav > li.disabled > a:hover,
.nav > li.disabled > a:focus {
color: #999999;
text-decoration: none;
background-color: transparent;
cursor: not-allowed;
}
.nav .open > a,
.nav .open > a:hover,
.nav .open > a:focus {
background-color: #eeeeee;
border-color: #008cba;
}
.nav .nav-divider {
height: 1px;
margin: 9.5px 0;
overflow: hidden;
background-color: #e5e5e5;
}
.nav > li > a > img {
max-width: none;
}
.nav-tabs {
border-bottom: 1px solid #dddddd;
}
.nav-tabs > li {
float: left;
margin-bottom: -1px;
}
.nav-tabs > li > a {
margin-right: 2px;
line-height: 1.4;
border: 1px solid transparent;
border-radius: 0 0 0 0;
}
.nav-tabs > li > a:hover {
border-color: #eeeeee #eeeeee #dddddd;
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
color: #6f6f6f;
background-color: #ffffff;
border: 1px solid #dddddd;
border-bottom-color: transparent;
cursor: default;
}
.nav-tabs.nav-justified {
width: 100%;
border-bottom: 0;
}
.nav-tabs.nav-justified > li {
float: none;
}
.nav-tabs.nav-justified > li > a {
text-align: center;
margin-bottom: 5px;
}
.nav-tabs.nav-justified > .dropdown .dropdown-menu {
top: auto;
left: auto;
}
@media (min-width: 768px) {
.nav-tabs.nav-justified > li {
display: table-cell;
width: 1%;
}
.nav-tabs.nav-justified > li > a {
margin-bottom: 0;
}
}
.nav-tabs.nav-justified > li > a {
margin-right: 0;
border-radius: 0;
}
.nav-tabs.nav-justified > .active > a,
.nav-tabs.nav-justified > .active > a:hover,
.nav-tabs.nav-justified > .active > a:focus {
border: 1px solid #dddddd;
}
@media (min-width: 768px) {
.nav-tabs.nav-justified > li > a {
border-bottom: 1px solid #dddddd;
border-radius: 0 0 0 0;
}
.nav-tabs.nav-justified > .active > a,
.nav-tabs.nav-justified > .active > a:hover,
.nav-tabs.nav-justified > .active > a:focus {
border-bottom-color: #ffffff;
}
}
.nav-pills > li {
float: left;
}
.nav-pills > li > a {
border-radius: 0;
}
.nav-pills > li + li {
margin-left: 2px;
}
.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
color: #ffffff;
background-color: #008cba;
}
.nav-stacked > li {
float: none;
}
.nav-stacked > li + li {
margin-top: 2px;
margin-left: 0;
}
.nav-justified {
width: 100%;
}
.nav-justified > li {
float: none;
}
.nav-justified > li > a {
text-align: center;
margin-bottom: 5px;
}
.nav-justified > .dropdown .dropdown-menu {
top: auto;
left: auto;
}
@media (min-width: 768px) {
.nav-justified > li {
display: table-cell;
width: 1%;
}
.nav-justified > li > a {
margin-bottom: 0;
}
}
.nav-tabs-justified {
border-bottom: 0;
}
.nav-tabs-justified > li > a {
margin-right: 0;
border-radius: 0;
}
.nav-tabs-justified > .active > a,
.nav-tabs-justified > .active > a:hover,
.nav-tabs-justified > .active > a:focus {
border: 1px solid #dddddd;
}
@media (min-width: 768px) {
.nav-tabs-justified > li > a {
border-bottom: 1px solid #dddddd;
border-radius: 0 0 0 0;
}
.nav-tabs-justified > .active > a,
.nav-tabs-justified > .active > a:hover,
.nav-tabs-justified > .active > a:focus {
border-bottom-color: #ffffff;
}
}
.tab-content > .tab-pane {
display: none;
}
.tab-content > .active {
display: block;
}
.nav-tabs .dropdown-menu {
margin-top: -1px;
border-top-right-radius: 0;
border-top-left-radius: 0;
}
.navbar {
position: relative;
min-height: 45px;
margin-bottom: 21px;
border: 1px solid transparent;
}
@media (min-width: 768px) {
.navbar {
border-radius: 0;
}
}
@media (min-width: 768px) {
.navbar-header {
float: left;
}
}
.navbar-collapse {
overflow-x: visible;
padding-right: 15px;
padding-left: 15px;
border-top: 1px solid transparent;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
-webkit-overflow-scrolling: touch;
}
.navbar-collapse.in {
overflow-y: auto;
}
@media (min-width: 768px) {
.navbar-collapse {
width: auto;
border-top: 0;
box-shadow: none;
}
.navbar-collapse.collapse {
display: block !important;
height: auto !important;
padding-bottom: 0;
overflow: visible !important;
}
.navbar-collapse.in {
overflow-y: visible;
}
.navbar-fixed-top .navbar-collapse,
.navbar-static-top .navbar-collapse,
.navbar-fixed-bottom .navbar-collapse {
padding-left: 0;
padding-right: 0;
}
}
.navbar-fixed-top .navbar-collapse,
.navbar-fixed-bottom .navbar-collapse {
max-height: 340px;
}
@media (max-device-width: 480px) and (orientation: landscape) {
.navbar-fixed-top .navbar-collapse,
.navbar-fixed-bottom .navbar-collapse {
max-height: 200px;
}
}
.container > .navbar-header,
.container-fluid > .navbar-header,
.container > .navbar-collapse,
.container-fluid > .navbar-collapse {
margin-right: -15px;
margin-left: -15px;
}
@media (min-width: 768px) {
.container > .navbar-header,
.container-fluid > .navbar-header,
.container > .navbar-collapse,
.container-fluid > .navbar-collapse {
margin-right: 0;
margin-left: 0;
}
}
.navbar-static-top {
z-index: 1000;
border-width: 0 0 1px;
}
@media (min-width: 768px) {
.navbar-static-top {
border-radius: 0;
}
}
.navbar-fixed-top,
.navbar-fixed-bottom {
position: fixed;
right: 0;
left: 0;
z-index: 1030;
}
@media (min-width: 768px) {
.navbar-fixed-top,
.navbar-fixed-bottom {
border-radius: 0;
}
}
.navbar-fixed-top {
top: 0;
border-width: 0 0 1px;
}
.navbar-fixed-bottom {
bottom: 0;
margin-bottom: 0;
border-width: 1px 0 0;
}
.navbar-brand {
float: left;
padding: 12px 15px;
font-size: 19px;
line-height: 21px;
height: 45px;
}
.navbar-brand:hover,
.navbar-brand:focus {
text-decoration: none;
}
.navbar-brand > img {
display: block;
}
@media (min-width: 768px) {
.navbar > .container .navbar-brand,
.navbar > .container-fluid .navbar-brand {
margin-left: -15px;
}
}
.navbar-toggle {
position: relative;
float: right;
margin-right: 15px;
padding: 9px 10px;
margin-top: 5.5px;
margin-bottom: 5.5px;
background-color: transparent;
background-image: none;
border: 1px solid transparent;
border-radius: 0;
}
.navbar-toggle:focus {
outline: 0;
}
.navbar-toggle .icon-bar {
display: block;
width: 22px;
height: 2px;
border-radius: 1px;
}
.navbar-toggle .icon-bar + .icon-bar {
margin-top: 4px;
}
@media (min-width: 768px) {
.navbar-toggle {
display: none;
}
}
.navbar-nav {
margin: 6px -15px;
}
.navbar-nav > li > a {
padding-top: 10px;
padding-bottom: 10px;
line-height: 21px;
}
@media (max-width: 767px) {
.navbar-nav .open .dropdown-menu {
position: static;
float: none;
width: auto;
margin-top: 0;
background-color: transparent;
border: 0;
box-shadow: none;
}
.navbar-nav .open .dropdown-menu > li > a,
.navbar-nav .open .dropdown-menu .dropdown-header {
padding: 5px 15px 5px 25px;
}
.navbar-nav .open .dropdown-menu > li > a {
line-height: 21px;
}
.navbar-nav .open .dropdown-menu > li > a:hover,
.navbar-nav .open .dropdown-menu > li > a:focus {
background-image: none;
}
}
@media (min-width: 768px) {
.navbar-nav {
float: left;
margin: 0;
}
.navbar-nav > li {
float: left;
}
.navbar-nav > li > a {
padding-top: 12px;
padding-bottom: 12px;
}
}
.navbar-form {
margin-left: -15px;
margin-right: -15px;
padding: 10px 15px;
border-top: 1px solid transparent;
border-bottom: 1px solid transparent;
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
margin-top: 3px;
margin-bottom: 3px;
}
@media (min-width: 768px) {
.navbar-form .form-group {
display: inline-block;
margin-bottom: 0;
vertical-align: middle;
}
.navbar-form .form-control {
display: inline-block;
width: auto;
vertical-align: middle;
}
.navbar-form .form-control-static {
display: inline-block;
}
.navbar-form .input-group {
display: inline-table;
vertical-align: middle;
}
.navbar-form .input-group .input-group-addon,
.navbar-form .input-group .input-group-btn,
.navbar-form .input-group .form-control {
width: auto;
}
.navbar-form .input-group > .form-control {
width: 100%;
}
.navbar-form .control-label {
margin-bottom: 0;
vertical-align: middle;
}
.navbar-form .radio,
.navbar-form .checkbox {
display: inline-block;
margin-top: 0;
margin-bottom: 0;
vertical-align: middle;
}
.navbar-form .radio label,
.navbar-form .checkbox label {
padding-left: 0;
}
.navbar-form .radio input[type="radio"],
.navbar-form .checkbox input[type="checkbox"] {
position: relative;
margin-left: 0;
}
.navbar-form .has-feedback .form-control-feedback {
top: 0;
}
}
@media (max-width: 767px) {
.navbar-form .form-group {
margin-bottom: 5px;
}
.navbar-form .form-group:last-child {
margin-bottom: 0;
}
}
@media (min-width: 768px) {
.navbar-form {
width: auto;
border: 0;
margin-left: 0;
margin-right: 0;
padding-top: 0;
padding-bottom: 0;
-webkit-box-shadow: none;
box-shadow: none;
}
}
.navbar-nav > li > .dropdown-menu {
margin-top: 0;
border-top-right-radius: 0;
border-top-left-radius: 0;
}
.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {
margin-bottom: 0;
border-top-right-radius: 0;
border-top-left-radius: 0;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
.navbar-btn {
margin-top: 3px;
margin-bottom: 3px;
}
.navbar-btn.btn-sm {
margin-top: 4.5px;
margin-bottom: 4.5px;
}
.navbar-btn.btn-xs {
margin-top: 11.5px;
margin-bottom: 11.5px;
}
.navbar-text {
margin-top: 12px;
margin-bottom: 12px;
}
@media (min-width: 768px) {
.navbar-text {
float: left;
margin-left: 15px;
margin-right: 15px;
}
}
@media (min-width: 768px) {
.navbar-left {
float: left !important;
}
.navbar-right {
float: right !important;
margin-right: -15px;
}
.navbar-right ~ .navbar-right {
margin-right: 0;
}
}
.navbar-default {
background-color: #333333;
border-color: #222222;
}
.navbar-default .navbar-brand {
color: #ffffff;
}
.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
color: #ffffff;
background-color: transparent;
}
.navbar-default .navbar-text {
color: #ffffff;
}
.navbar-default .navbar-nav > li > a {
color: #ffffff;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
color: #ffffff;
background-color: #272727;
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
color: #ffffff;
background-color: #272727;
}
.navbar-default .navbar-nav > .disabled > a,
.navbar-default .navbar-nav > .disabled > a:hover,
.navbar-default .navbar-nav > .disabled > a:focus {
color: #cccccc;
background-color: transparent;
}
.navbar-default .navbar-toggle {
border-color: transparent;
}
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
background-color: transparent;
}
.navbar-default .navbar-toggle .icon-bar {
background-color: #ffffff;
}
.navbar-default .navbar-collapse,
.navbar-default .navbar-form {
border-color: #222222;
}
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
background-color: #272727;
color: #ffffff;
}
@media (max-width: 767px) {
.navbar-default .navbar-nav .open .dropdown-menu > li > a {
color: #ffffff;
}
.navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,
.navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
color: #ffffff;
background-color: #272727;
}
.navbar-default .navbar-nav .open .dropdown-menu > .active > a,
.navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover,
.navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus {
color: #ffffff;
background-color: #272727;
}
.navbar-default .navbar-nav .open .dropdown-menu > .disabled > a,
.navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover,
.navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus {
color: #cccccc;
background-color: transparent;
}
}
.navbar-default .navbar-link {
color: #ffffff;
}
.navbar-default .navbar-link:hover {
color: #ffffff;
}
.navbar-default .btn-link {
color: #ffffff;
}
.navbar-default .btn-link:hover,
.navbar-default .btn-link:focus {
color: #ffffff;
}
.navbar-default .btn-link[disabled]:hover,
fieldset[disabled] .navbar-default .btn-link:hover,
.navbar-default .btn-link[disabled]:focus,
fieldset[disabled] .navbar-default .btn-link:focus {
color: #cccccc;
}
.navbar-inverse {
background-color: #008cba;
border-color: #006687;
}
.navbar-inverse .navbar-brand {
color: #ffffff;
}
.navbar-inverse .navbar-brand:hover,
.navbar-inverse .navbar-brand:focus {
color: #ffffff;
background-color: transparent;
}
.navbar-inverse .navbar-text {
color: #ffffff;
}
.navbar-inverse .navbar-nav > li > a {
color: #ffffff;
}
.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
color: #ffffff;
background-color: #006687;
}
.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus {
color: #ffffff;
background-color: #006687;
}
.navbar-inverse .navbar-nav > .disabled > a,
.navbar-inverse .navbar-nav > .disabled > a:hover,
.navbar-inverse .navbar-nav > .disabled > a:focus {
color: #444444;
background-color: transparent;
}
.navbar-inverse .navbar-toggle {
border-color: transparent;
}
.navbar-inverse .navbar-toggle:hover,
.navbar-inverse .navbar-toggle:focus {
background-color: transparent;
}
.navbar-inverse .navbar-toggle .icon-bar {
background-color: #ffffff;
}
.navbar-inverse .navbar-collapse,
.navbar-inverse .navbar-form {
border-color: #007196;
}
.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:hover,
.navbar-inverse .navbar-nav > .open > a:focus {
background-color: #006687;
color: #ffffff;
}
@media (max-width: 767px) {
.navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header {
border-color: #006687;
}
.navbar-inverse .navbar-nav .open .dropdown-menu .divider {
background-color: #006687;
}
.navbar-inverse .navbar-nav .open .dropdown-menu > li > a {
color: #ffffff;
}
.navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover,
.navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus {
color: #ffffff;
background-color: #006687;
}
.navbar-inverse .navbar-nav .open .dropdown-menu > .active > a,
.navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover,
.navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus {
color: #ffffff;
background-color: #006687;
}
.navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a,
.navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover,
.navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus {
color: #444444;
background-color: transparent;
}
}
.navbar-inverse .navbar-link {
color: #ffffff;
}
.navbar-inverse .navbar-link:hover {
color: #ffffff;
}
.navbar-inverse .btn-link {
color: #ffffff;
}
.navbar-inverse .btn-link:hover,
.navbar-inverse .btn-link:focus {
color: #ffffff;
}
.navbar-inverse .btn-link[disabled]:hover,
fieldset[disabled] .navbar-inverse .btn-link:hover,
.navbar-inverse .btn-link[disabled]:focus,
fieldset[disabled] .navbar-inverse .btn-link:focus {
color: #444444;
}
.breadcrumb {
padding: 8px 15px;
margin-bottom: 21px;
list-style: none;
background-color: #f5f5f5;
border-radius: 0;
}
.breadcrumb > li {
display: inline-block;
}
.breadcrumb > li + li:before {
content: "/\00a0";
padding: 0 5px;
color: #999999;
}
.breadcrumb > .active {
color: #333333;
}
.pagination {
display: inline-block;
padding-left: 0;
margin: 21px 0;
border-radius: 0;
}
.pagination > li {
display: inline;
}
.pagination > li > a,
.pagination > li > span {
position: relative;
float: left;
padding: 8px 12px;
line-height: 1.4;
text-decoration: none;
color: #008cba;
background-color: transparent;
border: 1px solid transparent;
margin-left: -1px;
}
.pagination > li:first-child > a,
.pagination > li:first-child > span {
margin-left: 0;
border-bottom-left-radius: 0;
border-top-left-radius: 0;
}
.pagination > li:last-child > a,
.pagination > li:last-child > span {
border-bottom-right-radius: 0;
border-top-right-radius: 0;
}
.pagination > li > a:hover,
.pagination > li > span:hover,
.pagination > li > a:focus,
.pagination > li > span:focus {
color: #00526e;
background-color: #eeeeee;
border-color: transparent;
}
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
z-index: 2;
color: #ffffff;
background-color: #008cba;
border-color: transparent;
cursor: default;
}
.pagination > .disabled > span,
.pagination > .disabled > span:hover,
.pagination > .disabled > span:focus,
.pagination > .disabled > a,
.pagination > .disabled > a:hover,
.pagination > .disabled > a:focus {
color: #999999;
background-color: #ffffff;
border-color: transparent;
cursor: not-allowed;
}
.pagination-lg > li > a,
.pagination-lg > li > span {
padding: 16px 20px;
font-size: 19px;
}
.pagination-lg > li:first-child > a,
.pagination-lg > li:first-child > span {
border-bottom-left-radius: 0;
border-top-left-radius: 0;
}
.pagination-lg > li:last-child > a,
.pagination-lg > li:last-child > span {
border-bottom-right-radius: 0;
border-top-right-radius: 0;
}
.pagination-sm > li > a,
.pagination-sm > li > span {
padding: 8px 12px;
font-size: 12px;
}
.pagination-sm > li:first-child > a,
.pagination-sm > li:first-child > span {
border-bottom-left-radius: 0;
border-top-left-radius: 0;
}
.pagination-sm > li:last-child > a,
.pagination-sm > li:last-child > span {
border-bottom-right-radius: 0;
border-top-right-radius: 0;
}
.pager {
padding-left: 0;
margin: 21px 0;
list-style: none;
text-align: center;
}
.pager li {
display: inline;
}
.pager li > a,
.pager li > span {
display: inline-block;
padding: 5px 14px;
background-color: transparent;
border: 1px solid transparent;
border-radius: 3px;
}
.pager li > a:hover,
.pager li > a:focus {
text-decoration: none;
background-color: #eeeeee;
}
.pager .next > a,
.pager .next > span {
float: right;
}
.pager .previous > a,
.pager .previous > span {
float: left;
}
.pager .disabled > a,
.pager .disabled > a:hover,
.pager .disabled > a:focus,
.pager .disabled > span {
color: #999999;
background-color: transparent;
cursor: not-allowed;
}
.label {
display: inline;
padding: .2em .6em .3em;
font-size: 75%;
font-weight: bold;
line-height: 1;
color: #ffffff;
text-align: center;
white-space: nowrap;
vertical-align: baseline;
border-radius: .25em;
}
a.label:hover,
a.label:focus {
color: #ffffff;
text-decoration: none;
cursor: pointer;
}
.label:empty {
display: none;
}
.btn .label {
position: relative;
top: -1px;
}
.label-default {
background-color: #999999;
}
.label-default[href]:hover,
.label-default[href]:focus {
background-color: #808080;
}
.label-primary {
background-color: #008cba;
}
.label-primary[href]:hover,
.label-primary[href]:focus {
background-color: #006687;
}
.label-success {
background-color: #43ac6a;
}
.label-success[href]:hover,
.label-success[href]:focus {
background-color: #358753;
}
.label-info {
background-color: #5bc0de;
}
.label-info[href]:hover,
.label-info[href]:focus {
background-color: #31b0d5;
}
.label-warning {
background-color: #e99002;
}
.label-warning[href]:hover,
.label-warning[href]:focus {
background-color: #b67102;
}
.label-danger {
background-color: #f04124;
}
.label-danger[href]:hover,
.label-danger[href]:focus {
background-color: #d32a0e;
}
.badge {
display: inline-block;
min-width: 10px;
padding: 3px 7px;
font-size: 12px;
font-weight: bold;
color: #777777;
line-height: 1;
vertical-align: baseline;
white-space: nowrap;
text-align: center;
background-color: #e7e7e7;
border-radius: 10px;
}
.badge:empty {
display: none;
}
.btn .badge {
position: relative;
top: -1px;
}
.btn-xs .badge,
.btn-group-xs > .btn .badge {
top: 0;
padding: 1px 5px;
}
a.badge:hover,
a.badge:focus {
color: #ffffff;
text-decoration: none;
cursor: pointer;
}
.list-group-item.active > .badge,
.nav-pills > .active > a > .badge {
color: #008cba;
background-color: #ffffff;
}
.list-group-item > .badge {
float: right;
}
.list-group-item > .badge + .badge {
margin-right: 5px;
}
.nav-pills > li > a > .badge {
margin-left: 3px;
}
.jumbotron {
padding: 30px 15px;
margin-bottom: 30px;
color: inherit;
background-color: #fafafa;
}
.jumbotron h1,
.jumbotron .h1 {
color: inherit;
}
.jumbotron p {
margin-bottom: 15px;
font-size: 23px;
font-weight: 200;
}
.jumbotron > hr {
border-top-color: #e1e1e1;
}
.container .jumbotron,
.container-fluid .jumbotron {
border-radius: 0;
}
.jumbotron .container {
max-width: 100%;
}
@media screen and (min-width: 768px) {
.jumbotron {
padding: 48px 0;
}
.container .jumbotron,
.container-fluid .jumbotron {
padding-left: 60px;
padding-right: 60px;
}
.jumbotron h1,
.jumbotron .h1 {
font-size: 67.5px;
}
}
.thumbnail {
display: block;
padding: 4px;
margin-bottom: 21px;
line-height: 1.4;
background-color: #ffffff;
border: 1px solid #dddddd;
border-radius: 0;
-webkit-transition: border 0.2s ease-in-out;
-o-transition: border 0.2s ease-in-out;
transition: border 0.2s ease-in-out;
}
.thumbnail > img,
.thumbnail a > img {
margin-left: auto;
margin-right: auto;
}
a.thumbnail:hover,
a.thumbnail:focus,
a.thumbnail.active {
border-color: #008cba;
}
.thumbnail .caption {
padding: 9px;
color: #222222;
}
.alert {
padding: 15px;
margin-bottom: 21px;
border: 1px solid transparent;
border-radius: 0;
}
.alert h4 {
margin-top: 0;
color: inherit;
}
.alert .alert-link {
font-weight: bold;
}
.alert > p,
.alert > ul {
margin-bottom: 0;
}
.alert > p + p {
margin-top: 5px;
}
.alert-dismissable,
.alert-dismissible {
padding-right: 35px;
}
.alert-dismissable .close,
.alert-dismissible .close {
position: relative;
top: -2px;
right: -21px;
color: inherit;
}
.alert-success {
background-color: #43ac6a;
border-color: #3c9a5f;
color: #ffffff;
}
.alert-success hr {
border-top-color: #358753;
}
.alert-success .alert-link {
color: #e6e6e6;
}
.alert-info {
background-color: #5bc0de;
border-color: #3db5d8;
color: #ffffff;
}
.alert-info hr {
border-top-color: #2aabd2;
}
.alert-info .alert-link {
color: #e6e6e6;
}
.alert-warning {
background-color: #e99002;
border-color: #d08002;
color: #ffffff;
}
.alert-warning hr {
border-top-color: #b67102;
}
.alert-warning .alert-link {
color: #e6e6e6;
}
.alert-danger {
background-color: #f04124;
border-color: #ea2f10;
color: #ffffff;
}
.alert-danger hr {
border-top-color: #d32a0e;
}
.alert-danger .alert-link {
color: #e6e6e6;
}
@-webkit-keyframes progress-bar-stripes {
from {
background-position: 40px 0;
}
to {
background-position: 0 0;
}
}
@keyframes progress-bar-stripes {
from {
background-position: 40px 0;
}
to {
background-position: 0 0;
}
}
.progress {
overflow: hidden;
height: 21px;
margin-bottom: 21px;
background-color: #f5f5f5;
border-radius: 0;
-webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}
.progress-bar {
float: left;
width: 0%;
height: 100%;
font-size: 12px;
line-height: 21px;
color: #ffffff;
text-align: center;
background-color: #008cba;
-webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
-webkit-transition: width 0.6s ease;
-o-transition: width 0.6s ease;
transition: width 0.6s ease;
}
.progress-striped .progress-bar,
.progress-bar-striped {
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-size: 40px 40px;
}
.progress.active .progress-bar,
.progress-bar.active {
-webkit-animation: progress-bar-stripes 2s linear infinite;
-o-animation: progress-bar-stripes 2s linear infinite;
animation: progress-bar-stripes 2s linear infinite;
}
.progress-bar-success {
background-color: #43ac6a;
}
.progress-striped .progress-bar-success {
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
}
.progress-bar-info {
background-color: #5bc0de;
}
.progress-striped .progress-bar-info {
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
}
.progress-bar-warning {
background-color: #e99002;
}
.progress-striped .progress-bar-warning {
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
}
.progress-bar-danger {
background-color: #f04124;
}
.progress-striped .progress-bar-danger {
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
}
.media {
margin-top: 15px;
}
.media:first-child {
margin-top: 0;
}
.media,
.media-body {
zoom: 1;
overflow: hidden;
}
.media-body {
width: 10000px;
}
.media-object {
display: block;
}
.media-right,
.media > .pull-right {
padding-left: 10px;
}
.media-left,
.media > .pull-left {
padding-right: 10px;
}
.media-left,
.media-right,
.media-body {
display: table-cell;
vertical-align: top;
}
.media-middle {
vertical-align: middle;
}
.media-bottom {
vertical-align: bottom;
}
.media-heading {
margin-top: 0;
margin-bottom: 5px;
}
.media-list {
padding-left: 0;
list-style: none;
}
.list-group {
margin-bottom: 20px;
padding-left: 0;
}
.list-group-item {
position: relative;
display: block;
padding: 10px 15px;
margin-bottom: -1px;
background-color: #ffffff;
border: 1px solid #dddddd;
}
.list-group-item:first-child {
border-top-right-radius: 0;
border-top-left-radius: 0;
}
.list-group-item:last-child {
margin-bottom: 0;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
a.list-group-item {
color: #555555;
}
a.list-group-item .list-group-item-heading {
color: #333333;
}
a.list-group-item:hover,
a.list-group-item:focus {
text-decoration: none;
color: #555555;
background-color: #f5f5f5;
}
.list-group-item.disabled,
.list-group-item.disabled:hover,
.list-group-item.disabled:focus {
background-color: #eeeeee;
color: #999999;
cursor: not-allowed;
}
.list-group-item.disabled .list-group-item-heading,
.list-group-item.disabled:hover .list-group-item-heading,
.list-group-item.disabled:focus .list-group-item-heading {
color: inherit;
}
.list-group-item.disabled .list-group-item-text,
.list-group-item.disabled:hover .list-group-item-text,
.list-group-item.disabled:focus .list-group-item-text {
color: #999999;
}
.list-group-item.active,
.list-group-item.active:hover,
.list-group-item.active:focus {
z-index: 2;
color: #ffffff;
background-color: #008cba;
border-color: #008cba;
}
.list-group-item.active .list-group-item-heading,
.list-group-item.active:hover .list-group-item-heading,
.list-group-item.active:focus .list-group-item-heading,
.list-group-item.active .list-group-item-heading > small,
.list-group-item.active:hover .list-group-item-heading > small,
.list-group-item.active:focus .list-group-item-heading > small,
.list-group-item.active .list-group-item-heading > .small,
.list-group-item.active:hover .list-group-item-heading > .small,
.list-group-item.active:focus .list-group-item-heading > .small {
color: inherit;
}
.list-group-item.active .list-group-item-text,
.list-group-item.active:hover .list-group-item-text,
.list-group-item.active:focus .list-group-item-text {
color: #87e1ff;
}
.list-group-item-success {
color: #43ac6a;
background-color: #dff0d8;
}
a.list-group-item-success {
color: #43ac6a;
}
a.list-group-item-success .list-group-item-heading {
color: inherit;
}
a.list-group-item-success:hover,
a.list-group-item-success:focus {
color: #43ac6a;
background-color: #d0e9c6;
}
a.list-group-item-success.active,
a.list-group-item-success.active:hover,
a.list-group-item-success.active:focus {
color: #fff;
background-color: #43ac6a;
border-color: #43ac6a;
}
.list-group-item-info {
color: #5bc0de;
background-color: #d9edf7;
}
a.list-group-item-info {
color: #5bc0de;
}
a.list-group-item-info .list-group-item-heading {
color: inherit;
}
a.list-group-item-info:hover,
a.list-group-item-info:focus {
color: #5bc0de;
background-color: #c4e3f3;
}
a.list-group-item-info.active,
a.list-group-item-info.active:hover,
a.list-group-item-info.active:focus {
color: #fff;
background-color: #5bc0de;
border-color: #5bc0de;
}
.list-group-item-warning {
color: #e99002;
background-color: #fcf8e3;
}
a.list-group-item-warning {
color: #e99002;
}
a.list-group-item-warning .list-group-item-heading {
color: inherit;
}
a.list-group-item-warning:hover,
a.list-group-item-warning:focus {
color: #e99002;
background-color: #faf2cc;
}
a.list-group-item-warning.active,
a.list-group-item-warning.active:hover,
a.list-group-item-warning.active:focus {
color: #fff;
background-color: #e99002;
border-color: #e99002;
}
.list-group-item-danger {
color: #f04124;
background-color: #f2dede;
}
a.list-group-item-danger {
color: #f04124;
}
a.list-group-item-danger .list-group-item-heading {
color: inherit;
}
a.list-group-item-danger:hover,
a.list-group-item-danger:focus {
color: #f04124;
background-color: #ebcccc;
}
a.list-group-item-danger.active,
a.list-group-item-danger.active:hover,
a.list-group-item-danger.active:focus {
color: #fff;
background-color: #f04124;
border-color: #f04124;
}
.list-group-item-heading {
margin-top: 0;
margin-bottom: 5px;
}
.list-group-item-text {
margin-bottom: 0;
line-height: 1.3;
}
.panel {
margin-bottom: 21px;
background-color: #ffffff;
border: 1px solid transparent;
border-radius: 0;
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}
.panel-body {
padding: 15px;
}
.panel-heading {
padding: 10px 15px;
border-bottom: 1px solid transparent;
border-top-right-radius: -1;
border-top-left-radius: -1;
}
.panel-heading > .dropdown .dropdown-toggle {
color: inherit;
}
.panel-title {
margin-top: 0;
margin-bottom: 0;
font-size: 17px;
color: inherit;
}
.panel-title > a,
.panel-title > small,
.panel-title > .small,
.panel-title > small > a,
.panel-title > .small > a {
color: inherit;
}
.panel-footer {
padding: 10px 15px;
background-color: #f5f5f5;
border-top: 1px solid #dddddd;
border-bottom-right-radius: -1;
border-bottom-left-radius: -1;
}
.panel > .list-group,
.panel > .panel-collapse > .list-group {
margin-bottom: 0;
}
.panel > .list-group .list-group-item,
.panel > .panel-collapse > .list-group .list-group-item {
border-width: 1px 0;
border-radius: 0;
}
.panel > .list-group:first-child .list-group-item:first-child,
.panel > .panel-collapse > .list-group:first-child .list-group-item:first-child {
border-top: 0;
border-top-right-radius: -1;
border-top-left-radius: -1;
}
.panel > .list-group:last-child .list-group-item:last-child,
.panel > .panel-collapse > .list-group:last-child .list-group-item:last-child {
border-bottom: 0;
border-bottom-right-radius: -1;
border-bottom-left-radius: -1;
}
.panel-heading + .list-group .list-group-item:first-child {
border-top-width: 0;
}
.list-group + .panel-footer {
border-top-width: 0;
}
.panel > .table,
.panel > .table-responsive > .table,
.panel > .panel-collapse > .table {
margin-bottom: 0;
}
.panel > .table caption,
.panel > .table-responsive > .table caption,
.panel > .panel-collapse > .table caption {
padding-left: 15px;
padding-right: 15px;
}
.panel > .table:first-child,
.panel > .table-responsive:first-child > .table:first-child {
border-top-right-radius: -1;
border-top-left-radius: -1;
}
.panel > .table:first-child > thead:first-child > tr:first-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child,
.panel > .table:first-child > tbody:first-child > tr:first-child,
.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child {
border-top-left-radius: -1;
border-top-right-radius: -1;
}
.panel > .table:first-child > thead:first-child > tr:first-child td:first-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:first-child,
.panel > .table:first-child > tbody:first-child > tr:first-child td:first-child,
.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:first-child,
.panel > .table:first-child > thead:first-child > tr:first-child th:first-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:first-child,
.panel > .table:first-child > tbody:first-child > tr:first-child th:first-child,
.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:first-child {
border-top-left-radius: -1;
}
.panel > .table:first-child > thead:first-child > tr:first-child td:last-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:last-child,
.panel > .table:first-child > tbody:first-child > tr:first-child td:last-child,
.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:last-child,
.panel > .table:first-child > thead:first-child > tr:first-child th:last-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:last-child,
.panel > .table:first-child > tbody:first-child > tr:first-child th:last-child,
.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:last-child {
border-top-right-radius: -1;
}
.panel > .table:last-child,
.panel > .table-responsive:last-child > .table:last-child {
border-bottom-right-radius: -1;
border-bottom-left-radius: -1;
}
.panel > .table:last-child > tbody:last-child > tr:last-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child,
.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child {
border-bottom-left-radius: -1;
border-bottom-right-radius: -1;
}
.panel > .table:last-child > tbody:last-child > tr:last-child td:first-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:first-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child td:first-child,
.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:first-child,
.panel > .table:last-child > tbody:last-child > tr:last-child th:first-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:first-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child th:first-child,
.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:first-child {
border-bottom-left-radius: -1;
}
.panel > .table:last-child > tbody:last-child > tr:last-child td:last-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:last-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child td:last-child,
.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:last-child,
.panel > .table:last-child > tbody:last-child > tr:last-child th:last-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:last-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child th:last-child,
.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:last-child {
border-bottom-right-radius: -1;
}
.panel > .panel-body + .table,
.panel > .panel-body + .table-responsive,
.panel > .table + .panel-body,
.panel > .table-responsive + .panel-body {
border-top: 1px solid #dddddd;
}
.panel > .table > tbody:first-child > tr:first-child th,
.panel > .table > tbody:first-child > tr:first-child td {
border-top: 0;
}
.panel > .table-bordered,
.panel > .table-responsive > .table-bordered {
border: 0;
}
.panel > .table-bordered > thead > tr > th:first-child,
.panel > .table-responsive > .table-bordered > thead > tr > th:first-child,
.panel > .table-bordered > tbody > tr > th:first-child,
.panel > .table-responsive > .table-bordered > tbody > tr > th:first-child,
.panel > .table-bordered > tfoot > tr > th:first-child,
.panel > .table-responsive > .table-bordered > tfoot > tr > th:first-child,
.panel > .table-bordered > thead > tr > td:first-child,
.panel > .table-responsive > .table-bordered > thead > tr > td:first-child,
.panel > .table-bordered > tbody > tr > td:first-child,
.panel > .table-responsive > .table-bordered > tbody > tr > td:first-child,
.panel > .table-bordered > tfoot > tr > td:first-child,
.panel > .table-responsive > .table-bordered > tfoot > tr > td:first-child {
border-left: 0;
}
.panel > .table-bordered > thead > tr > th:last-child,
.panel > .table-responsive > .table-bordered > thead > tr > th:last-child,
.panel > .table-bordered > tbody > tr > th:last-child,
.panel > .table-responsive > .table-bordered > tbody > tr > th:last-child,
.panel > .table-bordered > tfoot > tr > th:last-child,
.panel > .table-responsive > .table-bordered > tfoot > tr > th:last-child,
.panel > .table-bordered > thead > tr > td:last-child,
.panel > .table-responsive > .table-bordered > thead > tr > td:last-child,
.panel > .table-bordered > tbody > tr > td:last-child,
.panel > .table-responsive > .table-bordered > tbody > tr > td:last-child,
.panel > .table-bordered > tfoot > tr > td:last-child,
.panel > .table-responsive > .table-bordered > tfoot > tr > td:last-child {
border-right: 0;
}
.panel > .table-bordered > thead > tr:first-child > td,
.panel > .table-responsive > .table-bordered > thead > tr:first-child > td,
.panel > .table-bordered > tbody > tr:first-child > td,
.panel > .table-responsive > .table-bordered > tbody > tr:first-child > td,
.panel > .table-bordered > thead > tr:first-child > th,
.panel > .table-responsive > .table-bordered > thead > tr:first-child > th,
.panel > .table-bordered > tbody > tr:first-child > th,
.panel > .table-responsive > .table-bordered > tbody > tr:first-child > th {
border-bottom: 0;
}
.panel > .table-bordered > tbody > tr:last-child > td,
.panel > .table-responsive > .table-bordered > tbody > tr:last-child > td,
.panel > .table-bordered > tfoot > tr:last-child > td,
.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > td,
.panel > .table-bordered > tbody > tr:last-child > th,
.panel > .table-responsive > .table-bordered > tbody > tr:last-child > th,
.panel > .table-bordered > tfoot > tr:last-child > th,
.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > th {
border-bottom: 0;
}
.panel > .table-responsive {
border: 0;
margin-bottom: 0;
}
.panel-group {
margin-bottom: 21px;
}
.panel-group .panel {
margin-bottom: 0;
border-radius: 0;
}
.panel-group .panel + .panel {
margin-top: 5px;
}
.panel-group .panel-heading {
border-bottom: 0;
}
.panel-group .panel-heading + .panel-collapse > .panel-body,
.panel-group .panel-heading + .panel-collapse > .list-group {
border-top: 1px solid #dddddd;
}
.panel-group .panel-footer {
border-top: 0;
}
.panel-group .panel-footer + .panel-collapse .panel-body {
border-bottom: 1px solid #dddddd;
}
.panel-default {
border-color: #dddddd;
}
.panel-default > .panel-heading {
color: #333333;
background-color: #f5f5f5;
border-color: #dddddd;
}
.panel-default > .panel-heading + .panel-collapse > .panel-body {
border-top-color: #dddddd;
}
.panel-default > .panel-heading .badge {
color: #f5f5f5;
background-color: #333333;
}
.panel-default > .panel-footer + .panel-collapse > .panel-body {
border-bottom-color: #dddddd;
}
.panel-primary {
border-color: #008cba;
}
.panel-primary > .panel-heading {
color: #ffffff;
background-color: #008cba;
border-color: #008cba;
}
.panel-primary > .panel-heading + .panel-collapse > .panel-body {
border-top-color: #008cba;
}
.panel-primary > .panel-heading .badge {
color: #008cba;
background-color: #ffffff;
}
.panel-primary > .panel-footer + .panel-collapse > .panel-body {
border-bottom-color: #008cba;
}
.panel-success {
border-color: #3c9a5f;
}
.panel-success > .panel-heading {
color: #ffffff;
background-color: #43ac6a;
border-color: #3c9a5f;
}
.panel-success > .panel-heading + .panel-collapse > .panel-body {
border-top-color: #3c9a5f;
}
.panel-success > .panel-heading .badge {
color: #43ac6a;
background-color: #ffffff;
}
.panel-success > .panel-footer + .panel-collapse > .panel-body {
border-bottom-color: #3c9a5f;
}
.panel-info {
border-color: #3db5d8;
}
.panel-info > .panel-heading {
color: #ffffff;
background-color: #5bc0de;
border-color: #3db5d8;
}
.panel-info > .panel-heading + .panel-collapse > .panel-body {
border-top-color: #3db5d8;
}
.panel-info > .panel-heading .badge {
color: #5bc0de;
background-color: #ffffff;
}
.panel-info > .panel-footer + .panel-collapse > .panel-body {
border-bottom-color: #3db5d8;
}
.panel-warning {
border-color: #d08002;
}
.panel-warning > .panel-heading {
color: #ffffff;
background-color: #e99002;
border-color: #d08002;
}
.panel-warning > .panel-heading + .panel-collapse > .panel-body {
border-top-color: #d08002;
}
.panel-warning > .panel-heading .badge {
color: #e99002;
background-color: #ffffff;
}
.panel-warning > .panel-footer + .panel-collapse > .panel-body {
border-bottom-color: #d08002;
}
.panel-danger {
border-color: #ea2f10;
}
.panel-danger > .panel-heading {
color: #ffffff;
background-color: #f04124;
border-color: #ea2f10;
}
.panel-danger > .panel-heading + .panel-collapse > .panel-body {
border-top-color: #ea2f10;
}
.panel-danger > .panel-heading .badge {
color: #f04124;
background-color: #ffffff;
}
.panel-danger > .panel-footer + .panel-collapse > .panel-body {
border-bottom-color: #ea2f10;
}
.embed-responsive {
position: relative;
display: block;
height: 0;
padding: 0;
overflow: hidden;
}
.embed-responsive .embed-responsive-item,
.embed-responsive iframe,
.embed-responsive embed,
.embed-responsive object,
.embed-responsive video {
position: absolute;
top: 0;
left: 0;
bottom: 0;
height: 100%;
width: 100%;
border: 0;
}
.embed-responsive-16by9 {
padding-bottom: 56.25%;
}
.embed-responsive-4by3 {
padding-bottom: 75%;
}
.well {
min-height: 20px;
padding: 19px;
margin-bottom: 20px;
background-color: #fafafa;
border: 1px solid #e8e8e8;
border-radius: 0;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
}
.well blockquote {
border-color: #ddd;
border-color: rgba(0, 0, 0, 0.15);
}
.well-lg {
padding: 24px;
border-radius: 0;
}
.well-sm {
padding: 9px;
border-radius: 0;
}
.close {
float: right;
font-size: 22.5px;
font-weight: bold;
line-height: 1;
color: #ffffff;
text-shadow: 0 1px 0 #ffffff;
opacity: 0.2;
filter: alpha(opacity=20);
}
.close:hover,
.close:focus {
color: #ffffff;
text-decoration: none;
cursor: pointer;
opacity: 0.5;
filter: alpha(opacity=50);
}
button.close {
padding: 0;
cursor: pointer;
background: transparent;
border: 0;
-webkit-appearance: none;
}
.modal-open {
overflow: hidden;
}
.modal {
display: none;
overflow: hidden;
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1050;
-webkit-overflow-scrolling: touch;
outline: 0;
}
.modal.fade .modal-dialog {
-webkit-transform: translate(0, -25%);
-ms-transform: translate(0, -25%);
-o-transform: translate(0, -25%);
transform: translate(0, -25%);
-webkit-transition: -webkit-transform 0.3s ease-out;
-moz-transition: -moz-transform 0.3s ease-out;
-o-transition: -o-transform 0.3s ease-out;
transition: transform 0.3s ease-out;
}
.modal.in .modal-dialog {
-webkit-transform: translate(0, 0);
-ms-transform: translate(0, 0);
-o-transform: translate(0, 0);
transform: translate(0, 0);
}
.modal-open .modal {
overflow-x: hidden;
overflow-y: auto;
}
.modal-dialog {
position: relative;
width: auto;
margin: 10px;
}
.modal-content {
position: relative;
background-color: #ffffff;
border: 1px solid #999999;
border: 1px solid rgba(0, 0, 0, 0.2);
border-radius: 0;
-webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
background-clip: padding-box;
outline: 0;
}
.modal-backdrop {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1040;
background-color: #000000;
}
.modal-backdrop.fade {
opacity: 0;
filter: alpha(opacity=0);
}
.modal-backdrop.in {
opacity: 0.5;
filter: alpha(opacity=50);
}
.modal-header {
padding: 15px;
border-bottom: 1px solid #e5e5e5;
min-height: 16.4px;
}
.modal-header .close {
margin-top: -2px;
}
.modal-title {
margin: 0;
line-height: 1.4;
}
.modal-body {
position: relative;
padding: 20px;
}
.modal-footer {
padding: 20px;
text-align: right;
border-top: 1px solid #e5e5e5;
}
.modal-footer .btn + .btn {
margin-left: 5px;
margin-bottom: 0;
}
.modal-footer .btn-group .btn + .btn {
margin-left: -1px;
}
.modal-footer .btn-block + .btn-block {
margin-left: 0;
}
.modal-scrollbar-measure {
position: absolute;
top: -9999px;
width: 50px;
height: 50px;
overflow: scroll;
}
@media (min-width: 768px) {
.modal-dialog {
width: 600px;
margin: 30px auto;
}
.modal-content {
-webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}
.modal-sm {
width: 300px;
}
}
@media (min-width: 992px) {
.modal-lg {
width: 900px;
}
}
.tooltip {
position: absolute;
z-index: 1070;
display: block;
font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 12px;
font-weight: normal;
line-height: 1.4;
opacity: 0;
filter: alpha(opacity=0);
}
.tooltip.in {
opacity: 0.9;
filter: alpha(opacity=90);
}
.tooltip.top {
margin-top: -3px;
padding: 5px 0;
}
.tooltip.right {
margin-left: 3px;
padding: 0 5px;
}
.tooltip.bottom {
margin-top: 3px;
padding: 5px 0;
}
.tooltip.left {
margin-left: -3px;
padding: 0 5px;
}
.tooltip-inner {
max-width: 200px;
padding: 3px 8px;
color: #ffffff;
text-align: center;
text-decoration: none;
background-color: #333333;
border-radius: 0;
}
.tooltip-arrow {
position: absolute;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
}
.tooltip.top .tooltip-arrow {
bottom: 0;
left: 50%;
margin-left: -5px;
border-width: 5px 5px 0;
border-top-color: #333333;
}
.tooltip.top-left .tooltip-arrow {
bottom: 0;
right: 5px;
margin-bottom: -5px;
border-width: 5px 5px 0;
border-top-color: #333333;
}
.tooltip.top-right .tooltip-arrow {
bottom: 0;
left: 5px;
margin-bottom: -5px;
border-width: 5px 5px 0;
border-top-color: #333333;
}
.tooltip.right .tooltip-arrow {
top: 50%;
left: 0;
margin-top: -5px;
border-width: 5px 5px 5px 0;
border-right-color: #333333;
}
.tooltip.left .tooltip-arrow {
top: 50%;
right: 0;
margin-top: -5px;
border-width: 5px 0 5px 5px;
border-left-color: #333333;
}
.tooltip.bottom .tooltip-arrow {
top: 0;
left: 50%;
margin-left: -5px;
border-width: 0 5px 5px;
border-bottom-color: #333333;
}
.tooltip.bottom-left .tooltip-arrow {
top: 0;
right: 5px;
margin-top: -5px;
border-width: 0 5px 5px;
border-bottom-color: #333333;
}
.tooltip.bottom-right .tooltip-arrow {
top: 0;
left: 5px;
margin-top: -5px;
border-width: 0 5px 5px;
border-bottom-color: #333333;
}
.popover {
position: absolute;
top: 0;
left: 0;
z-index: 1060;
display: none;
max-width: 276px;
padding: 1px;
font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 15px;
font-weight: normal;
line-height: 1.4;
text-align: left;
background-color: #333333;
background-clip: padding-box;
border: 1px solid #333333;
border: 1px solid transparent;
border-radius: 0;
-webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
white-space: normal;
}
.popover.top {
margin-top: -10px;
}
.popover.right {
margin-left: 10px;
}
.popover.bottom {
margin-top: 10px;
}
.popover.left {
margin-left: -10px;
}
.popover-title {
margin: 0;
padding: 8px 14px;
font-size: 15px;
background-color: #333333;
border-bottom: 1px solid #262626;
border-radius: -1 -1 0 0;
}
.popover-content {
padding: 9px 14px;
}
.popover > .arrow,
.popover > .arrow:after {
position: absolute;
display: block;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
}
.popover > .arrow {
border-width: 11px;
}
.popover > .arrow:after {
border-width: 10px;
content: "";
}
.popover.top > .arrow {
left: 50%;
margin-left: -11px;
border-bottom-width: 0;
border-top-color: #000000;
border-top-color: rgba(0, 0, 0, 0.05);
bottom: -11px;
}
.popover.top > .arrow:after {
content: " ";
bottom: 1px;
margin-left: -10px;
border-bottom-width: 0;
border-top-color: #333333;
}
.popover.right > .arrow {
top: 50%;
left: -11px;
margin-top: -11px;
border-left-width: 0;
border-right-color: #000000;
border-right-color: rgba(0, 0, 0, 0.05);
}
.popover.right > .arrow:after {
content: " ";
left: 1px;
bottom: -10px;
border-left-width: 0;
border-right-color: #333333;
}
.popover.bottom > .arrow {
left: 50%;
margin-left: -11px;
border-top-width: 0;
border-bottom-color: #000000;
border-bottom-color: rgba(0, 0, 0, 0.05);
top: -11px;
}
.popover.bottom > .arrow:after {
content: " ";
top: 1px;
margin-left: -10px;
border-top-width: 0;
border-bottom-color: #333333;
}
.popover.left > .arrow {
top: 50%;
right: -11px;
margin-top: -11px;
border-right-width: 0;
border-left-color: #000000;
border-left-color: rgba(0, 0, 0, 0.05);
}
.popover.left > .arrow:after {
content: " ";
right: 1px;
border-right-width: 0;
border-left-color: #333333;
bottom: -10px;
}
.carousel {
position: relative;
}
.carousel-inner {
position: relative;
overflow: hidden;
width: 100%;
}
.carousel-inner > .item {
display: none;
position: relative;
-webkit-transition: 0.6s ease-in-out left;
-o-transition: 0.6s ease-in-out left;
transition: 0.6s ease-in-out left;
}
.carousel-inner > .item > img,
.carousel-inner > .item > a > img {
line-height: 1;
}
@media all and (transform-3d), (-webkit-transform-3d) {
.carousel-inner > .item {
-webkit-transition: -webkit-transform 0.6s ease-in-out;
-moz-transition: -moz-transform 0.6s ease-in-out;
-o-transition: -o-transform 0.6s ease-in-out;
transition: transform 0.6s ease-in-out;
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
backface-visibility: hidden;
-webkit-perspective: 1000;
-moz-perspective: 1000;
perspective: 1000;
}
.carousel-inner > .item.next,
.carousel-inner > .item.active.right {
-webkit-transform: translate3d(100%, 0, 0);
transform: translate3d(100%, 0, 0);
left: 0;
}
.carousel-inner > .item.prev,
.carousel-inner > .item.active.left {
-webkit-transform: translate3d(-100%, 0, 0);
transform: translate3d(-100%, 0, 0);
left: 0;
}
.carousel-inner > .item.next.left,
.carousel-inner > .item.prev.right,
.carousel-inner > .item.active {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
left: 0;
}
}
.carousel-inner > .active,
.carousel-inner > .next,
.carousel-inner > .prev {
display: block;
}
.carousel-inner > .active {
left: 0;
}
.carousel-inner > .next,
.carousel-inner > .prev {
position: absolute;
top: 0;
width: 100%;
}
.carousel-inner > .next {
left: 100%;
}
.carousel-inner > .prev {
left: -100%;
}
.carousel-inner > .next.left,
.carousel-inner > .prev.right {
left: 0;
}
.carousel-inner > .active.left {
left: -100%;
}
.carousel-inner > .active.right {
left: 100%;
}
.carousel-control {
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: 15%;
opacity: 0.5;
filter: alpha(opacity=50);
font-size: 20px;
color: #ffffff;
text-align: center;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.carousel-control.left {
background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%);
background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%);
background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);
}
.carousel-control.right {
left: auto;
right: 0;
background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%);
background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%);
background-image: linear-gradient(to right, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);
}
.carousel-control:hover,
.carousel-control:focus {
outline: 0;
color: #ffffff;
text-decoration: none;
opacity: 0.9;
filter: alpha(opacity=90);
}
.carousel-control .icon-prev,
.carousel-control .icon-next,
.carousel-control .glyphicon-chevron-left,
.carousel-control .glyphicon-chevron-right {
position: absolute;
top: 50%;
z-index: 5;
display: inline-block;
}
.carousel-control .icon-prev,
.carousel-control .glyphicon-chevron-left {
left: 50%;
margin-left: -10px;
}
.carousel-control .icon-next,
.carousel-control .glyphicon-chevron-right {
right: 50%;
margin-right: -10px;
}
.carousel-control .icon-prev,
.carousel-control .icon-next {
width: 20px;
height: 20px;
margin-top: -10px;
line-height: 1;
font-family: serif;
}
.carousel-control .icon-prev:before {
content: '\2039';
}
.carousel-control .icon-next:before {
content: '\203a';
}
.carousel-indicators {
position: absolute;
bottom: 10px;
left: 50%;
z-index: 15;
width: 60%;
margin-left: -30%;
padding-left: 0;
list-style: none;
text-align: center;
}
.carousel-indicators li {
display: inline-block;
width: 10px;
height: 10px;
margin: 1px;
text-indent: -999px;
border: 1px solid #ffffff;
border-radius: 10px;
cursor: pointer;
background-color: #000 \9;
background-color: rgba(0, 0, 0, 0);
}
.carousel-indicators .active {
margin: 0;
width: 12px;
height: 12px;
background-color: #ffffff;
}
.carousel-caption {
position: absolute;
left: 15%;
right: 15%;
bottom: 20px;
z-index: 10;
padding-top: 20px;
padding-bottom: 20px;
color: #ffffff;
text-align: center;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.carousel-caption .btn {
text-shadow: none;
}
@media screen and (min-width: 768px) {
.carousel-control .glyphicon-chevron-left,
.carousel-control .glyphicon-chevron-right,
.carousel-control .icon-prev,
.carousel-control .icon-next {
width: 30px;
height: 30px;
margin-top: -15px;
font-size: 30px;
}
.carousel-control .glyphicon-chevron-left,
.carousel-control .icon-prev {
margin-left: -15px;
}
.carousel-control .glyphicon-chevron-right,
.carousel-control .icon-next {
margin-right: -15px;
}
.carousel-caption {
left: 20%;
right: 20%;
padding-bottom: 30px;
}
.carousel-indicators {
bottom: 20px;
}
}
.clearfix:before,
.clearfix:after,
.dl-horizontal dd:before,
.dl-horizontal dd:after,
.container:before,
.container:after,
.container-fluid:before,
.container-fluid:after,
.row:before,
.row:after,
.form-horizontal .form-group:before,
.form-horizontal .form-group:after,
.btn-toolbar:before,
.btn-toolbar:after,
.btn-group-vertical > .btn-group:before,
.btn-group-vertical > .btn-group:after,
.nav:before,
.nav:after,
.navbar:before,
.navbar:after,
.navbar-header:before,
.navbar-header:after,
.navbar-collapse:before,
.navbar-collapse:after,
.pager:before,
.pager:after,
.panel-body:before,
.panel-body:after,
.modal-footer:before,
.modal-footer:after {
content: " ";
display: table;
}
.clearfix:after,
.dl-horizontal dd:after,
.container:after,
.container-fluid:after,
.row:after,
.form-horizontal .form-group:after,
.btn-toolbar:after,
.btn-group-vertical > .btn-group:after,
.nav:after,
.navbar:after,
.navbar-header:after,
.navbar-collapse:after,
.pager:after,
.panel-body:after,
.modal-footer:after {
clear: both;
}
.center-block {
display: block;
margin-left: auto;
margin-right: auto;
}
.pull-right {
float: right !important;
}
.pull-left {
float: left !important;
}
.hide {
display: none !important;
}
.show {
display: block !important;
}
.invisible {
visibility: hidden;
}
.text-hide {
font: 0/0 a;
color: transparent;
text-shadow: none;
background-color: transparent;
border: 0;
}
.hidden {
display: none !important;
}
.affix {
position: fixed;
}
@-ms-viewport {
width: device-width;
}
.visible-xs,
.visible-sm,
.visible-md,
.visible-lg {
display: none !important;
}
.visible-xs-block,
.visible-xs-inline,
.visible-xs-inline-block,
.visible-sm-block,
.visible-sm-inline,
.visible-sm-inline-block,
.visible-md-block,
.visible-md-inline,
.visible-md-inline-block,
.visible-lg-block,
.visible-lg-inline,
.visible-lg-inline-block {
display: none !important;
}
@media (max-width: 767px) {
.visible-xs {
display: block !important;
}
table.visible-xs {
display: table;
}
tr.visible-xs {
display: table-row !important;
}
th.visible-xs,
td.visible-xs {
display: table-cell !important;
}
}
@media (max-width: 767px) {
.visible-xs-block {
display: block !important;
}
}
@media (max-width: 767px) {
.visible-xs-inline {
display: inline !important;
}
}
@media (max-width: 767px) {
.visible-xs-inline-block {
display: inline-block !important;
}
}
@media (min-width: 768px) and (max-width: 991px) {
.visible-sm {
display: block !important;
}
table.visible-sm {
display: table;
}
tr.visible-sm {
display: table-row !important;
}
th.visible-sm,
td.visible-sm {
display: table-cell !important;
}
}
@media (min-width: 768px) and (max-width: 991px) {
.visible-sm-block {
display: block !important;
}
}
@media (min-width: 768px) and (max-width: 991px) {
.visible-sm-inline {
display: inline !important;
}
}
@media (min-width: 768px) and (max-width: 991px) {
.visible-sm-inline-block {
display: inline-block !important;
}
}
@media (min-width: 992px) and (max-width: 1199px) {
.visible-md {
display: block !important;
}
table.visible-md {
display: table;
}
tr.visible-md {
display: table-row !important;
}
th.visible-md,
td.visible-md {
display: table-cell !important;
}
}
@media (min-width: 992px) and (max-width: 1199px) {
.visible-md-block {
display: block !important;
}
}
@media (min-width: 992px) and (max-width: 1199px) {
.visible-md-inline {
display: inline !important;
}
}
@media (min-width: 992px) and (max-width: 1199px) {
.visible-md-inline-block {
display: inline-block !important;
}
}
@media (min-width: 1200px) {
.visible-lg {
display: block !important;
}
table.visible-lg {
display: table;
}
tr.visible-lg {
display: table-row !important;
}
th.visible-lg,
td.visible-lg {
display: table-cell !important;
}
}
@media (min-width: 1200px) {
.visible-lg-block {
display: block !important;
}
}
@media (min-width: 1200px) {
.visible-lg-inline {
display: inline !important;
}
}
@media (min-width: 1200px) {
.visible-lg-inline-block {
display: inline-block !important;
}
}
@media (max-width: 767px) {
.hidden-xs {
display: none !important;
}
}
@media (min-width: 768px) and (max-width: 991px) {
.hidden-sm {
display: none !important;
}
}
@media (min-width: 992px) and (max-width: 1199px) {
.hidden-md {
display: none !important;
}
}
@media (min-width: 1200px) {
.hidden-lg {
display: none !important;
}
}
.visible-print {
display: none !important;
}
@media print {
.visible-print {
display: block !important;
}
table.visible-print {
display: table;
}
tr.visible-print {
display: table-row !important;
}
th.visible-print,
td.visible-print {
display: table-cell !important;
}
}
.visible-print-block {
display: none !important;
}
@media print {
.visible-print-block {
display: block !important;
}
}
.visible-print-inline {
display: none !important;
}
@media print {
.visible-print-inline {
display: inline !important;
}
}
.visible-print-inline-block {
display: none !important;
}
@media print {
.visible-print-inline-block {
display: inline-block !important;
}
}
@media print {
.hidden-print {
display: none !important;
}
}
@font-face {
font-family: 'fontello';
src: url('/static/fonts/fontello.eot?95428746');
src: url('/static/fonts/fontello.eot?95428746#iefix') format('embedded-opentype'), url('/static/fonts/fontello.woff?95428746') format('woff'), url('/static/fonts/fontello.ttf?95428746') format('truetype'), url('/static/fonts/fontello.svg?95428746#fontello') format('svg');
font-weight: normal;
font-style: normal;
}
/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
@font-face {
font-family: 'fontello';
src: url('/static/fonts/fontello.svg?95428746#fontello') format('svg');
}
}
.icon:before {
font-family: "fontello";
font-style: normal;
font-weight: normal;
speak: none;
display: inline-block;
text-decoration: inherit;
width: 1em;
text-align: center;
/* For safety - reset parent styles, that can break glyph codes*/
font-variant: normal;
text-transform: none;
/* fix buttons height, for twitter bootstrap */
line-height: 1em;
}
.icon-rss:before {
font-family: "fontello";
font-style: normal;
font-weight: normal;
speak: none;
display: inline-block;
text-decoration: inherit;
width: 1em;
text-align: center;
/* For safety - reset parent styles, that can break glyph codes*/
font-variant: normal;
text-transform: none;
/* fix buttons height, for twitter bootstrap */
line-height: 1em;
content: '\e800';
}
.icon-rss-squared:before {
font-family: "fontello";
font-style: normal;
font-weight: normal;
speak: none;
display: inline-block;
text-decoration: inherit;
width: 1em;
text-align: center;
/* For safety - reset parent styles, that can break glyph codes*/
font-variant: normal;
text-transform: none;
/* fix buttons height, for twitter bootstrap */
line-height: 1em;
content: '\e801';
}
.icon-rdiffweb:before {
font-family: "fontello";
font-style: normal;
font-weight: normal;
speak: none;
display: inline-block;
text-decoration: inherit;
width: 1em;
text-align: center;
/* For safety - reset parent styles, that can break glyph codes*/
font-variant: normal;
text-transform: none;
/* fix buttons height, for twitter bootstrap */
line-height: 1em;
content: '\e802';
}
.icon-folder:before {
font-family: "fontello";
font-style: normal;
font-weight: normal;
speak: none;
display: inline-block;
text-decoration: inherit;
width: 1em;
text-align: center;
/* For safety - reset parent styles, that can break glyph codes*/
font-variant: normal;
text-transform: none;
/* fix buttons height, for twitter bootstrap */
line-height: 1em;
content: '\e803';
}
.icon-folder-empty:before {
font-family: "fontello";
font-style: normal;
font-weight: normal;
speak: none;
display: inline-block;
text-decoration: inherit;
width: 1em;
text-align: center;
/* For safety - reset parent styles, that can break glyph codes*/
font-variant: normal;
text-transform: none;
/* fix buttons height, for twitter bootstrap */
line-height: 1em;
content: '\e804';
}
.icon-doc:before {
font-family: "fontello";
font-style: normal;
font-weight: normal;
speak: none;
display: inline-block;
text-decoration: inherit;
width: 1em;
text-align: center;
/* For safety - reset parent styles, that can break glyph codes*/
font-variant: normal;
text-transform: none;
/* fix buttons height, for twitter bootstrap */
line-height: 1em;
content: '\e805';
}
.icon-doc-inv:before {
font-family: "fontello";
font-style: normal;
font-weight: normal;
speak: none;
display: inline-block;
text-decoration: inherit;
width: 1em;
text-align: center;
/* For safety - reset parent styles, that can break glyph codes*/
font-variant: normal;
text-transform: none;
/* fix buttons height, for twitter bootstrap */
line-height: 1em;
content: '\e806';
}
.icon-down-dir:before {
font-family: "fontello";
font-style: normal;
font-weight: normal;
speak: none;
display: inline-block;
text-decoration: inherit;
width: 1em;
text-align: center;
/* For safety - reset parent styles, that can break glyph codes*/
font-variant: normal;
text-transform: none;
/* fix buttons height, for twitter bootstrap */
line-height: 1em;
content: '\e807';
}
.icon-up-dir:before {
font-family: "fontello";
font-style: normal;
font-weight: normal;
speak: none;
display: inline-block;
text-decoration: inherit;
width: 1em;
text-align: center;
/* For safety - reset parent styles, that can break glyph codes*/
font-variant: normal;
text-transform: none;
/* fix buttons height, for twitter bootstrap */
line-height: 1em;
content: '\e808';
}
.icon-left-dir:before {
font-family: "fontello";
font-style: normal;
font-weight: normal;
speak: none;
display: inline-block;
text-decoration: inherit;
width: 1em;
text-align: center;
/* For safety - reset parent styles, that can break glyph codes*/
font-variant: normal;
text-transform: none;
/* fix buttons height, for twitter bootstrap */
line-height: 1em;
content: '\e809';
}
.icon-right-dir:before {
font-family: "fontello";
font-style: normal;
font-weight: normal;
speak: none;
display: inline-block;
text-decoration: inherit;
width: 1em;
text-align: center;
/* For safety - reset parent styles, that can break glyph codes*/
font-variant: normal;
text-transform: none;
/* fix buttons height, for twitter bootstrap */
line-height: 1em;
content: '\e80A';
}
.icon-box:before {
font-family: "fontello";
font-style: normal;
font-weight: normal;
speak: none;
display: inline-block;
text-decoration: inherit;
width: 1em;
text-align: center;
/* For safety - reset parent styles, that can break glyph codes*/
font-variant: normal;
text-transform: none;
/* fix buttons height, for twitter bootstrap */
line-height: 1em;
content: '\e80B';
}
.icon-archive:before {
font-family: "fontello";
font-style: normal;
font-weight: normal;
speak: none;
display: inline-block;
text-decoration: inherit;
width: 1em;
text-align: center;
/* For safety - reset parent styles, that can break glyph codes*/
font-variant: normal;
text-transform: none;
/* fix buttons height, for twitter bootstrap */
line-height: 1em;
content: '\e80C';
}
.icon-desktop:before {
font-family: "fontello";
font-style: normal;
font-weight: normal;
speak: none;
display: inline-block;
text-decoration: inherit;
width: 1em;
text-align: center;
/* For safety - reset parent styles, that can break glyph codes*/
font-variant: normal;
text-transform: none;
/* fix buttons height, for twitter bootstrap */
line-height: 1em;
content: '\e80D';
}
.icon-laptop:before {
font-family: "fontello";
font-style: normal;
font-weight: normal;
speak: none;
display: inline-block;
text-decoration: inherit;
width: 1em;
text-align: center;
/* For safety - reset parent styles, that can break glyph codes*/
font-variant: normal;
text-transform: none;
/* fix buttons height, for twitter bootstrap */
line-height: 1em;
content: '\e80E';
}
.icon-search:before {
font-family: "fontello";
font-style: normal;
font-weight: normal;
speak: none;
display: inline-block;
text-decoration: inherit;
width: 1em;
text-align: center;
/* For safety - reset parent styles, that can break glyph codes*/
font-variant: normal;
text-transform: none;
/* fix buttons height, for twitter bootstrap */
line-height: 1em;
content: '\e811';
}
.icon-download:before {
font-family: "fontello";
font-style: normal;
font-weight: normal;
speak: none;
display: inline-block;
text-decoration: inherit;
width: 1em;
text-align: center;
/* For safety - reset parent styles, that can break glyph codes*/
font-variant: normal;
text-transform: none;
/* fix buttons height, for twitter bootstrap */
line-height: 1em;
content: '\e812';
}
.icon-file-archive:before {
font-family: "fontello";
font-style: normal;
font-weight: normal;
speak: none;
display: inline-block;
text-decoration: inherit;
width: 1em;
text-align: center;
/* For safety - reset parent styles, that can break glyph codes*/
font-variant: normal;
text-transform: none;
/* fix buttons height, for twitter bootstrap */
line-height: 1em;
content: '\e813';
}
body {
padding-top: 50px;
}
.light {
color: #626262;
}
.login-page {
padding-top: 40px;
padding-bottom: 40px;
}
.login-page .form-signin {
max-width: 330px;
padding: 15px;
margin: 0 auto;
}
.login-page .form-signin .form-signin-heading,
.login-page .form-signin .checkbox {
margin-bottom: 10px;
}
.login-page .form-signin .checkbox {
font-weight: normal;
}
.login-page .form-signin .form-control {
position: relative;
height: auto;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 10px;
font-size: 16px;
}
.login-page .form-signin .form-control:focus {
z-index: 2;
}
.login-page .form-signin input[type="text"],
.login-page .form-signin input[type="password"] {
margin-bottom: 10px;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
#files .icon-folder:before {
font-family: "fontello";
font-style: normal;
font-weight: normal;
speak: none;
display: inline-block;
text-decoration: inherit;
width: 1em;
text-align: center;
/* For safety - reset parent styles, that can break glyph codes*/
font-variant: normal;
text-transform: none;
/* fix buttons height, for twitter bootstrap */
line-height: 1em;
content: '\e804';
}
#files .icon-file:before {
font-family: "fontello";
font-style: normal;
font-weight: normal;
speak: none;
display: inline-block;
text-decoration: inherit;
width: 1em;
text-align: center;
/* For safety - reset parent styles, that can break glyph codes*/
font-variant: normal;
text-transform: none;
/* fix buttons height, for twitter bootstrap */
line-height: 1em;
content: '\e805';
}
#files .notexists {
color: #999;
background-color: #f9f9f9;
}
#files .notexists a {
color: #999;
}
#files .dropdown > .btn-link {
padding: 0;
}
.nowrap {
white-space: nowrap;
}
.sortable .asc:after {
font-family: "fontello";
font-style: normal;
font-weight: normal;
speak: none;
display: inline-block;
text-decoration: inherit;
width: 1em;
text-align: center;
/* For safety - reset parent styles, that can break glyph codes*/
font-variant: normal;
text-transform: none;
/* fix buttons height, for twitter bootstrap */
line-height: 1em;
content: '\E808';
}
.sortable .desc:after {
font-family: "fontello";
font-style: normal;
font-weight: normal;
speak: none;
display: inline-block;
text-decoration: inherit;
width: 1em;
text-align: center;
/* For safety - reset parent styles, that can break glyph codes*/
font-variant: normal;
text-transform: none;
/* fix buttons height, for twitter bootstrap */
line-height: 1em;
content: '\E807';
}
@media (max-width: 767px) {
.dropdown-menu-right-xs {
left: auto;
right: 0;
}
}
@media (max-width: 767px) {
.dropdown-menu-left-xs {
left: 0;
right: auto;
}
}
rdiffweb-v0.7.1/rdiffweb/static/favicon.png 0000664 0000000 0000000 00000000324 12572375337 0020724 0 ustar 00root root 0000000 0000000 PNG
IHDR a sBIT|d pHYs |4k tEXtSoftware www.inkscape.org< QIDAT8ݓ1
0O%?rCj`QiI^ᨹ4? *_Yq 㩱~@P?SO&ZE IENDB` rdiffweb-v0.7.1/rdiffweb/static/fonts/ 0000775 0000000 0000000 00000000000 12572375337 0017723 5 ustar 00root root 0000000 0000000 rdiffweb-v0.7.1/rdiffweb/static/fonts/fontello-c66bbe3d.zip 0000664 0000000 0000000 00000245154 12572375337 0023600 0 ustar 00root root 0000000 0000000 PK
*mE fontello-c66bbe3d/UT dTdTux PK *mE~+b/ m fontello-c66bbe3d/config.jsonUT dTdTux [K9rH m!uHP6A>WfZEV@=
Fͨ8~/w{㏿|^/0Ͽ~}\|a&էǿb gk^'s[i e&!Ib[EG
iY7 ,O17iy/~_u.}?O(b{y'.QZûR:+vJ%_"R.><8)z1~?Ǟ>:͖M;9sΛ& Kcen:-/?}}<$܍pNsrU]{}>疻061\N+Z5؟33hY넳U0Mg-V]¼ՊTUaiR!.(qVb!9'$YRRdb"pLm'9*3aypu(Aj%QZX(bʶ_0{U=zz%Wr)s
X1Ze^uJĩĖ0ť@&\ib]*ClNSb-gLI!m2/6;'.r-d3dQ,],
?!8tnkJW.6 ~LY8\z8\jϛܯjÛ89J,5pM<\N :@*CoP ΪT8ҫkT=d3m+g*MK],Yylff^n_9ӚvUBjnpOR0vCAD_?&+bMk組A&P.ARJ_igw]1E=iJ>A\؏0dWڍQPlYls6˲e\:),+QrX9}psZx`nu8$Yd4ijj1O;<8zY>nވ
˴YB[2<6[H ؎v4wn`BBHcZ.h/\"zhjR%j]`?zH&tq1)-it2-ۚWؖPIy !HwFXbtT@YmW
:;[H`AnE~,u8JGg_S OpWH`4])~M Wjb*2u4(ͦeb^ uՑ"`+fLo䧧oP ;!g\#ܨ[8]-TZfpKPnS-u.E9-(c%