Use plain links instead of buttons.

This commit is contained in:
Paulo Reis 2016-06-20 14:42:36 +01:00
parent ada018263a
commit a8976fd4dc
3 changed files with 65 additions and 53 deletions

View file

@ -111,14 +111,13 @@ div.full-size.pdf(ng-controller="PdfController")
p.card-hint-text(ng-show="entry.humanReadableHint", ng-bind-html="entry.humanReadableHint") p.card-hint-text(ng-show="entry.humanReadableHint", ng-bind-html="entry.humanReadableHint")
.card-hint-actions .card-hint-actions
.card-hint-action-ext-link .card-hint-action-ext-link
a.btn.btn-sm.btn-default(ng-href="{{ entry.extraInfoURL }}", target="_blank") a(ng-href="{{ entry.extraInfoURL }}", target="_blank")
i.fa.fa-external-link i.fa.fa-external-link
| #{translate("log_hint_extra_info")} | #{translate("log_hint_extra_info")}
.card-hint-action-feedback .card-hint-action-feedback
label.card-hint-enquiry-label #{translate("log_hint_enquiry_helpful")}  label.card-hint-enquiry-label #{translate("log_hint_enquiry_helpful")}
.btn-group.btn-group-sm(role="group") a #{translate("answer_yes")}
button.btn.btn-default #{translate("answer_yes")} a #{translate("answer_no")}
button.btn.btn-default #{translate("answer_no")}
p.entry-content(ng-show="entry.content") {{ entry.content }} p.entry-content(ng-show="entry.content") {{ entry.content }}
p p

View file

@ -1,42 +1,42 @@
define -> [ define -> [
regexToMatch: /Too many }'s/ regexToMatch: /Too many }'s/
extraInfoURL: "https://en.wikibooks.org/wiki/LaTeX/Errors_and_Warnings#Too_many_.7D.27s" extraInfoURL: ""
humanReadableHint: """ humanReadableHint: """
The reason LaTeX thinks there are too many }'s here is that the opening curly brace is missing after the <tt>\\date</tt> control sequence and before the word December, so the closing curly brace is seen as one too many (which it is!). The reason LaTeX thinks there are too many }'s here is that the opening curly brace is missing after the <tt>\\date</tt> control sequence and before the word December, so the closing curly brace is seen as one too many (which it is!).
""" """
, ,
regexToMatch: /Undefined control sequence/ regexToMatch: /Undefined control sequence/
extraInfoURL: "https://en.wikibooks.org/wiki/LaTeX/Errors_and_Warnings#Undefined_control_sequence" extraInfoURL: "/learn/Errors:Undefined_control_sequence."
humanReadableHint: """ humanReadableHint: """
In this example, LaTeX is complaining that it has no such command ("control sequence") as <tt>\\dtae</tt>. Obviously it's been mistyped, but only a human can detect that fact: all LaTeX knows is that <tt>\\dtae</tt> is not a command it knows about: it's undefined. In this example, LaTeX is complaining that it has no such command ("control sequence") as <tt>\\dtae</tt>. Obviously it's been mistyped, but only a human can detect that fact: all LaTeX knows is that <tt>\\dtae</tt> is not a command it knows about: it's undefined.
""" """
, ,
regexToMatch: /Missing \$ inserted/ regexToMatch: /Missing \$ inserted/
extraInfoURL: "https://en.wikibooks.org/wiki/LaTeX/Errors_and_Warnings#Not_in_Mathematics_Mode" extraInfoURL: "/learn/Errors:Missing_$_inserted"
humanReadableHint: """ humanReadableHint: """
A character that can only be used in the mathematics was inserted in normal text. If you intended to use mathematics mode, then use <tt>$...$</tt> or <tt>\\begin{math}...\\end{math}</tt> or use the 'quick math mode': <tt>\\ensuremath{...}</tt>. A character that can only be used in the mathematics was inserted in normal text. If you intended to use mathematics mode, then use <tt>$...$</tt> or <tt>\\begin{math}...\\end{math}</tt> or use the 'quick math mode': <tt>\\ensuremath{...}</tt>.
""" """
, ,
regexToMatch: /Runaway argument/ regexToMatch: /Runaway argument/
extraInfoURL: "https://en.wikibooks.org/wiki/LaTeX/Errors_and_Warnings#Runaway_argument" extraInfoURL: "/learn/Errors:Undefined_control_sequence."
humanReadableHint: """ humanReadableHint: """
In this error, the closing curly brace has been omitted from the date. It's the opposite of the error of too many }'s, and it results in <tt>\\maketitle</tt> trying to format the title page while LaTeX is still expecting more text for the date! In this error, the closing curly brace has been omitted from the date. It's the opposite of the error of too many }'s, and it results in <tt>\\maketitle</tt> trying to format the title page while LaTeX is still expecting more text for the date!
""" """
, ,
regexToMatch: /Underfull \\hbox/ regexToMatch: /Underfull \\hbox/
extraInfoURL: "https://en.wikibooks.org/wiki/LaTeX/Errors_and_Warnings#Underfull_hbox" extraInfoURL: "/learn/Errors:Underfull_%5Chbox"
humanReadableHint: """ humanReadableHint: """
This is a warning that LaTeX cannot stretch the line wide enough to fit, without making the spacing bigger than its currently permitted maximum. The badness (0-10,000) indicates how severe this is (here you can probably ignore a badness of 1394). This is a warning that LaTeX cannot stretch the line wide enough to fit, without making the spacing bigger than its currently permitted maximum. The badness (0-10,000) indicates how severe this is (here you can probably ignore a badness of 1394).
""" """
, ,
regexToMatch: /Overfull \\hbox/ regexToMatch: /Overfull \\hbox/
extraInfoURL: "https://en.wikibooks.org/wiki/LaTeX/Errors_and_Warnings#Overfull_hbox" extraInfoURL: ""
humanReadableHint: """ humanReadableHint: """
An overfull \\hbox means that there is a hyphenation or justification problem: moving the last word on the line to the next line would make the spaces in the line wider than the current limit; keeping the word on the line would make the spaces smaller than the current limit, so the word is left on the line, but with the minimum allowed space between words, and which makes the line go over the edge. An overfull \\hbox means that there is a hyphenation or justification problem: moving the last word on the line to the next line would make the spaces in the line wider than the current limit; keeping the word on the line would make the spaces smaller than the current limit, so the word is left on the line, but with the minimum allowed space between words, and which makes the line go over the edge.
""" """
, ,
regexToMatch: /LaTeX Error: File .* not found/ regexToMatch: /LaTeX Error: File .* not found/
extraInfoURL: "https://en.wikibooks.org/wiki/LaTeX/Errors_and_Warnings#Missing_package" extraInfoURL: "/learn/Errors:missing_package"
humanReadableHint: """ humanReadableHint: """
When you use the <tt>\\usepackage</tt> command to request LaTeX to use a certain package, it will look for a file with the specified name and the filetype <tt>.sty</tt>. In this case the user has mistyped the name of the paralist package, so it's easy to fix. When you use the <tt>\\usepackage</tt> command to request LaTeX to use a certain package, it will look for a file with the specified name and the filetype <tt>.sty</tt>. In this case the user has mistyped the name of the paralist package, so it's easy to fix.
""" """

View file

@ -195,6 +195,19 @@
.fa { .fa {
color: #FFF; color: #FFF;
} }
.alert-danger & {
color: @alert-danger-border;
}
.alert-warning & {
color: @alert-warning-border;
}
.alert-info & {
color: @alert-info-border;
}
} }
&-text, &-text,
@ -205,9 +218,8 @@
} }
&-enquiry-label { &-enquiry-label {
font-size: 0.8rem; font-size: inherit;
margin-bottom: 0; margin-bottom: 0;
margin-right: 0.5em;
font-weight: normal; font-weight: normal;
} }
@ -218,18 +230,19 @@
&-action-ext-link, &-action-ext-link,
&-action-feedback { &-action-feedback {
display: inline-block; display: inline-block;
font-size: 0.8rem;
} }
&-action-feedback { &-action-feedback {
float: right; float: right;
a {
margin-left: 0.5em;
}
} }
& + p { & + p {
margin-top: 20px; margin-top: 20px;
} }
a {
}
} }