Commits

Clark C. Evans committed 5271521

unindenting htraf example

  • Participants
  • Parent commits c2f4323

Comments (0)

Files changed (1)

File doc/showcase.rst

 ----------------------
 
 On startup, HTSQL examines tables, primary keys, and foreign keys
-to construct a navigational graph of your database.  Or regression
-test is introspected::
+to construct a navigational graph of your database.  For example::
 
          +------------+               +------------+
     /---+| DEPARTMENT |>-------------o|   SCHOOL   |+---\
    .. sourcecode:: html
 
       <body>
-          <h3>Select School</h3>
-          <select id="school"
-                  data-source="/school{code, name}"/>
-          <div class="chart"
-               data-source="/program{title, count(student)}
-                            ?school=$school&count(student)>0"
-               data-display="chart"
-               data-chart-title="Percent of Students by Program"/>
+      <h3>Select School</h3>
+      <select id="school"
+              data-source="/school{code, name}"/>
+      <div class="chart"
+           data-source="/program{title, count(student)}
+                        ?school=$school&count(student)>0"
+           data-display="chart"
+           data-chart-title="Percent of Students by Program"/>
 
-          <h3>Departments</h3>
-          <p>Filter by name: <input id="department_name"/></p>
-          <table id="department"
-                 data-hide-first-column="yes"
-                 data-source="/department{code, name, school.name}
-                              ?school=$school&name~$department_name"/>
-          <p>
-              The selected department:
-              <em data-source="/department{name}?code=$department"/>
-              <br/>
-              The number of courses in selected department:
-              <strong data-source="/department{count(course)}
-                                   ?code=$department"/>
-          </p>
+      <h3>Departments</h3>
+      <p>Filter by name: <input id="department_name"/></p>
+      <table id="department"
+             data-hide-first-column="yes"
+             data-source="/department{code, name, school.name}
+                          ?school=$school&name~$department_name"/>
+      <p>
+          The selected department:
+          <em data-source="/department{name}?code=$department"/>
+          <br/>
+          The number of courses in selected department:
+          <strong data-source="/department{count(course)}
+                               ?code=$department"/>
+      </p>
 
-          <h3>Courses</h3>
-          <table id="course"
-                 data-source="/course?department=$department"/>
+      <h3>Courses</h3>
+      <table id="course"
+             data-source="/course?department=$department"/>
       </body>
 
    .. image:: img/htraf_screenshot.png