diff --git a/PyRIGS/urls.py b/PyRIGS/urls.py index 91d58e19..a3e1727e 100644 --- a/PyRIGS/urls.py +++ b/PyRIGS/urls.py @@ -6,6 +6,7 @@ from django.contrib.auth.decorators import login_required from django.conf import settings from django.views.decorators.clickjacking import xframe_options_exempt from django.contrib.auth.views import LoginView +from django.views.generic import TemplateView from registration.backends.default.views import RegistrationView from PyRIGS.decorators import permission_required_with_403 import RIGS @@ -35,4 +36,5 @@ if settings.DEBUG: import debug_toolbar urlpatterns = [ url(r'^__debug__/', include(debug_toolbar.urls)), + path('bootstrap/', TemplateView.as_view(template_name="bootstrap.html")), ] + urlpatterns diff --git a/gulpfile.js b/gulpfile.js index 9558f175..ef70b31d 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -84,7 +84,7 @@ function browserSyncReload(done) { function watchFiles() { gulp.watch("RIGS/static/scss/**/*.scss", styles); // TODO This prevents reload looping, but means we don't reload if new third party scripts are added - gulp.watch("RIGS/static/js/src/*", scripts); + gulp.watch("RIGS/static/js/src/**/*.js", scripts); gulp.watch(['templates/**/*.html', 'RIGS/templates/**/*.html', 'assets/templates/**/*.html', 'versioning/templates/**/*.html'], browserSyncReload); } diff --git a/templates/bootstrap.html b/templates/bootstrap.html new file mode 100644 index 00000000..5244447d --- /dev/null +++ b/templates/bootstrap.html @@ -0,0 +1,2739 @@ +{% extends 'base.html' %} + +{% block content %} +
+
+
+
+ + +
+
+
+
+
+
+
+

+ + Typography +

+

+ + + + + + + + + + +

+
+ +
+
+
+
+
+

Headings

+

h1. Bootstrap heading

+

h2. Bootstrap heading

+

h3. Bootstrap heading

+

h4. Bootstrap heading

+
h5. Bootstrap heading
+
h6. Bootstrap heading
+ +

Lead

+

Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.

+ +

Styles

+

You can use the mark tag to + highlight text.

+

+ This line of text is meant to be treated as deleted text. +

+

+ This line of text is meant to be treated as no longer accurate. +

+

+ This line of text is meant to be treated as an addition to the document. +

+

+ This line of text will render as underlined +

+

This line of text is meant to be treated as fine print.

+

This line rendered as bold text.

+

This line rendered as italicized text.

+

And this is a muted text.

+

abbr abbr+init

+ +

Colors

+

+ + .text-primary + + .text-secondary + + .text-success + + .text-danger + + .text-warning + + .text-info + + .text-light + + .text-dark + + .text-white + +

+

+ + Primary link + + Secondary link + + Success link + + Danger link + + Warning link + + Info link + + Light link + + Dark link + + White link + +

+ +

Inline code

+

For example, <section> should be wrapped as inline.

+

y = mx + b

+

To switch directories, type cd followed by the name of the directory.
To edit settings, press ctrl + , +

+

This text is meant to be treated as sample output from a computer program.

+
+
+

Displays

+

Display 1

+

Display 2

+

Display 3

+

Display 4

+ +

Sample body

+

+ Lórum ipse - mint senyért - nyált ságos iség, ahol beles metás, csaprozás, vermény, csaprát + és más meni zsorlóca kuncáskodik. Mosztag, férzet napé, fuvódás 11, törnyélés ; valamint szuvegés vitancs: a dozmus drikója, + jultsás kelés magyarul. A szuvegés és gyarány pasztákban buggyos mendernyékről, filingéjükről és pucájukról húzódik a + fabampa. Hűtő benne a legújabban belég mendernyék mártja is, részletesen sáskodik a kétenc fríg lepkonyaival. Csétletésről + cigál le egy kéző lengelész csapárába rimulnia, ahol három másik szivény együtt érleti spotráit. Ha a bénulás summája + kalkodik, úgy púdulhat, mintha az volna a sülső csoltása, hogy a szedhentes és egyes tengyelét lécetse ki a pávágyokból. + Ez vajon vertető ölyök vagy vegítő dosna? Szalalizál bunya a felegesben olyan szellőző kedő, amely farisban kevetteti + a nyagondos hizmusok „énemlő” lárias mizmusait? +

+ +

Code block

+ +
/**
+ * @author John Smith <john.smith@example.com>
+ */
+package l2f.gameserver.model;
+
+public abstract class L2Char extends L2Object {
+	public static final Short ERROR = 0x0001;
+
+	public void moveTo(int x, int y, int z) {
+		_ai = null;
+		log("Should not be called");
+		if (1 > 5) { // wtf!?
+			return;
+		}
+	}
+}
+
+
+
+
+

Blockquote

+
+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

+
Someone famous in Source Title
+
+
+
+
+
+

...centered

+
+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

+
Someone famous in Source Title
+
+
+
+
+
+

...on right

+
+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

+
Someone famous in Source Title
+
+
+
+
+
+

List

+
    +
  • Lorem ipsum dolor sit amet
  • +
  • Consectetur adipiscing elit
  • +
  • Integer molestie lorem at massa
  • +
  • Facilisis in pretium nisl aliquet
  • +
  • Nulla volutpat aliquam velit +
      +
    • Phasellus iaculis neque
    • +
    • Purus sodales ultricies
    • +
    • Vestibulum laoreet porttitor sem
    • +
    • Ac tristique libero volutpat at
    • +
    +
  • +
  • Faucibus porta lacus fringilla vel
  • +
  • Aenean sit amet erat nunc
  • +
  • Eget porttitor lorem
  • +
+
+
+

...unstyled

+
    +
  • Lorem ipsum dolor sit amet
  • +
  • Consectetur adipiscing elit
  • +
  • Integer molestie lorem at massa
  • +
  • Facilisis in pretium nisl aliquet
  • +
  • Nulla volutpat aliquam velit +
      +
    • Phasellus iaculis neque
    • +
    • Purus sodales ultricies
    • +
    • Vestibulum laoreet porttitor sem
    • +
    • Ac tristique libero volutpat at
    • +
    +
  • +
  • Faucibus porta lacus fringilla vel
  • +
  • Aenean sit amet erat nunc
  • +
  • Eget porttitor lorem
  • +
+
+
+

...inline

+
    +
  • Lorem ipsum
  • +
  • Phasellus iaculis
  • +
  • Nulla volutpat
  • +
+
+
+
+
+

Definition list

+
+
+
+
Description lists
+
A description list is perfect for defining terms.
+ +
Euismod
+
+

Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.

+

Donec id elit non mi porta gravida at eget metus.

+
+ +
Malesuada porta
+
Etiam porta sem malesuada magna mollis euismod.
+ +
Truncated term is truncated
+
Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
+ +
Nesting
+
+
+
Nested definition list
+
Aenean posuere, tortor sed cursus feugiat, nunc augue blandit nunc.
+
+
+
+ +
+
+

Background colors

+
+ + +
+
.bg-primary
+
+ + +
+
.bg-secondary
+
+ + +
+
.bg-success
+
+ + +
+
.bg-danger
+
+ + +
+
.bg-warning
+
+ + +
+
.bg-info
+
+ + +
+
.bg-light
+
+ + +
+
.bg-dark
+
+ + +
+
.bg-white
+
+ +
+
+ +
+ +
+
+
+
+

+ + Images +

+

+ + + + + + + + +

+
+ +
+
+
+
+
+

Responsive image

+ responsive image +
+
+

Thumbnail

+ thumbnail image +
+
+

Figure

+
+ Figure +
A caption for the above image.
+
+
+
+

Media

+
+ Generic placeholder image +
+
Media heading
+ Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in + vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in + faucibus. + +
+ + Generic placeholder image + +
+
Media heading
+ Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in + vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis + in faucibus. +
+
+
+
+
+
+
+
+ +
+
+
+
+

+ + Tables +

+

+ + + + +

+
+ +
+
+
+
+
+

Table

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#First NameLast NameUsername
1MarkOtto@mdo
2JacobThornton@fat
3Larrythe Bird@twitter
+
+
+

Inversed table

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#First NameLast NameUsername
1MarkOtto@mdo
2JacobThornton@fat
3Larrythe Bird@twitter
+
+
+
+
+

Table with colors

+

Note: Use table-* classes.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeColumn headingColumn heading
DefaultColumn contentColumn content
ActiveColumn contentColumn content
PrimaryColumn contentColumn content
SecondaryColumn contentColumn content
SuccessColumn contentColumn content
DangerColumn contentColumn content
WarningColumn contentColumn content
InfoColumn contentColumn content
LightColumn contentColumn content
DarkColumn contentColumn content
+
+
+

Inversed table with colors

+

Note: Use bg-* and text-* classes.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeColumn headingColumn heading
DefaultColumn contentColumn content
PrimaryColumn contentColumn content
SecondaryColumn contentColumn content
SuccessColumn contentColumn content
DangerColumn contentColumn content
WarningColumn contentColumn content
InfoColumn contentColumn content
LightColumn contentColumn content
DarkColumn contentColumn content
+
+
+
+
+

Default header

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#First NameLast NameUsername
1MarkOtto@mdo
2JacobThornton@fat
3Larrythe Bird@twitter
+
+
+

Inversed header

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#First NameLast NameUsername
1MarkOtto@mdo
2JacobThornton@fat
3Larrythe Bird@twitter
+
+
+
+
+

Small table

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#First NameLast NameUsername
1MarkOtto@mdo
2JacobThornton@fat
3Larrythe Bird@twitter
+
+
+
+
+ +
+
+
+
+

+ + List groups +

+

+ + + + +

+
+ +
+
+
+
+
+ +
+
+

...with actions and colors

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+
+
+ +
+
+
+
+

+ + Buttons +

+

+ + + + + + + + + + +

+
+ +
+
+
+ + +
+
+

General buttons

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +

Outline buttons

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+

Sizes

+
+ + + +
+
+
+

Groups and dropdown

+ +
+ +
+

Pagination

+ +
+
+
+
+ +
+
+
+
+

+ + Jumbotrons +

+

+ + + + +

+
+ +
+
+
+
+
+

Default jumbotron

+
+

Hello, world!

+

This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.

+
+

It uses utility classes for typography and spacing to space content out within the larger container.

+

+ Learn more +

+
+ +

Fluid jumbotron

+
+
+

Fluid jumbotron

+

This is a modified jumbotron that occupies the entire horizontal space of its parent.

+
+
+
+
+
+
+ +
+
+
+
+

+ + Cards +

+

+ + + + +

+
+ +
+
+
+
+
+

Various types of cards

+
+
+
+ This is some text within a card block. +
+
+
+
    +
  • Cras justo odio
  • +
  • Dapibus ac facilisis in
  • +
  • Vestibulum at eros
  • +
+
+
+
+

Card title

+
Card subtitle
+

Some quick example text to build on the card title and make up the bulk of the card's content.

+ Card link + Another link +
+
+
+
+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

+
+ + Someone famous in Source Title + +
+
+
+
+
+ Featured +
+
+

Special title treatment

+

With supporting text below as a natural lead-in to additional content.

+ Go somewhere +
+
+
+
+ Featured +
+
+

Special title treatment

+

With supporting text below as a natural lead-in to additional content.

+ Go somewhere +
+ +
+
+ Card image +
+
+ Card image cap +
+

Some quick example text to build on the card title and make up the bulk of the card's content.

+
+
+
+
+

Card title

+

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little + bit longer.

+

Last updated 3 mins ago

+
+ Card image cap +
+
+ Card image cap +
+

Card title

+

Some quick example text to build on the card title and make up the bulk of the card's content.

+
+
    +
  • Cras justo odio
  • +
  • Dapibus ac facilisis in
  • +
  • Vestibulum at eros
  • +
+ +
+
+
+ +
+
+

Special title treatment

+

With supporting text below as a natural lead-in to additional content.

+ Go somewhere +
+
+
+
+ +
+
+

Special title treatment

+

With supporting text below as a natural lead-in to additional content.

+ Go somewhere +
+
+
+
+
+
+
+

Colored cards

+
+ + + +
+
+
Header
+
+

Primary card

+

Some quick example text to build on the card title and make up the bulk of the card's content.

+
+
+
+ + + +
+
+
Header
+
+

Secondary card

+

Some quick example text to build on the card title and make up the bulk of the card's content.

+
+
+
+ + + +
+
+
Header
+
+

Success card

+

Some quick example text to build on the card title and make up the bulk of the card's content.

+
+
+
+ + + +
+
+
Header
+
+

Danger card

+

Some quick example text to build on the card title and make up the bulk of the card's content.

+
+
+
+ + + +
+
+
Header
+
+

Warning card

+

Some quick example text to build on the card title and make up the bulk of the card's content.

+
+
+
+ + + +
+
+
Header
+
+

Info card

+

Some quick example text to build on the card title and make up the bulk of the card's content.

+
+
+
+ + + +
+
+
Header
+
+

Light card

+

Some quick example text to build on the card title and make up the bulk of the card's content.

+
+
+
+ + + +
+
+
Header
+
+

Dark card

+

Some quick example text to build on the card title and make up the bulk of the card's content.

+
+
+
+ + +
+
+
+

Cards with colored borders

+
+ + +
+
+
Header
+
+

Primary card

+

Some quick example text to build on the card title and make up the bulk of the card's content.

+
+
+
+ + +
+
+
Header
+
+

Secondary card

+

Some quick example text to build on the card title and make up the bulk of the card's content.

+
+
+
+ + +
+
+
Header
+
+

Success card

+

Some quick example text to build on the card title and make up the bulk of the card's content.

+
+
+
+ + +
+
+
Header
+
+

Danger card

+

Some quick example text to build on the card title and make up the bulk of the card's content.

+
+
+
+ + +
+
+
Header
+
+

Warning card

+

Some quick example text to build on the card title and make up the bulk of the card's content.

+
+
+
+ + +
+
+
Header
+
+

Info card

+

Some quick example text to build on the card title and make up the bulk of the card's content.

+
+
+
+ + +
+
+
Header
+
+

Light card

+

Some quick example text to build on the card title and make up the bulk of the card's content.

+
+
+
+ + +
+
+
Header
+
+

Dark card

+

Some quick example text to build on the card title and make up the bulk of the card's content.

+
+
+
+ + +
+
+
+ +
+
+
+
+

+ + Forms +

+

+ + + + + + +

+
+ +
+
+
+
+
+
+

Text fields

+
+ + + We'll never share your email with anyone else. +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ + +
+
+ + +
Please provide a valid value.
+
+
+ +
+
+ +
+
+ +
+
+
+
+ $ +
+ +
+ .00 +
+
+
+
+
+
+ $ +
+ +
+ .00 +
+
+
+
+
+
+ +
+ +
+ +
+
+
+
+
+ + +
+
+
+ + +
+ +

Layouts

+
+
+
+ +
+
+ +
+
+
+
+
+
+ +
+
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+
+ @ +
+ +
+
+
+
+
+
+ + + Must be 8-20 characters long. +
+
+
+
+
+

Selects

+
+ + +
+
+ + +
+
+ +
+
+ +
+
+ +
+
+ +
+ +

Checkboxes

+
+ +
+
+ +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+
+ +
+
+ +
+ +

Radio buttons

+
+ +
+
+ +
+
+ +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+
+ +
+
+ +
+
+
+
+ +
+
+ + + +
+
+
+
+

+ + Badges +

+

+ + + + +

+
+ +
+
+
+
+
+

Contextual badges

+

+ + + Primary + + + Secondary + + + Success + + + Danger + + + Warning + + + Info + + + Light + + + Dark + + +

+ +

Pill badges

+

+ + + Primary + + + Secondary + + + Success + + + Danger + + + Warning + + + Info + + + Light + + + Dark + + +

+ +

Links

+

+ + + Primary + + + Secondary + + + Success + + + Danger + + + Warning + + + Info + + + Light + + + Dark + + +

+
+
+

Badges in headings

+

Example heading New

+

Example heading New

+

Example heading New

+

Example heading New

+
Example heading New
+
Example heading New
+
+
+
+
+ +
+
+
+
+

+ + Alerts +

+

+ + + + +

+
+ +
+
+
+
+
+

Simple alerts

+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+
+
+

Alerts with additional content

+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+
+
+ +
+
+
+
+

+ + Popovers +

+

+ + + + + + +

+
+ +
+
+
+
+
+

Popovers

+ +
+
+

Tooltips

+ +
+
+
+
+ +
+
+
+
+

+ + Progress bars +

+

+ + + + +

+
+ +
+
+
+
+
+

Colored progress bars

+
+
Label
+
+ + +
+
Label
+
+ +
+
Label
+
+ +
+
Label
+
+ +
+
Label
+
+ +
+
+

Striped progress bars

+
+
Label
+
+ + +
+
Label
+
+ +
+
Label
+
+ +
+
Label
+
+ +
+
Label
+
+ +
+
+
+
+ +
+
+
+
+

+ + Modals +

+

+ + + + +

+
+ +
+
+
+
+
+ +
+
+
+
+ +{% endblock %}