Commit Graph

29602 Commits

Author SHA1 Message Date
David Anderson 91025d6b7a web: add utility functions for Bootstrap forms
Bootstrap forms require a bunch of <div>s and other stuff.
I wrapped these in functions like
form_start()
form_end()
form_submit()
form_select_multiple()
form_input_text()

General idea going forward:
put HTML (especially Bootstrap-specified) in utility functions,
e.g. in util.inc or bootstrap.inc.
This will make the higher-level code easier to read,
and will facilitate moving to CSS frameworks other than Bootstrap.
2016-12-16 12:05:30 -08:00
David Anderson fc4fb299a6 file upload handler: unrecognized XML is not critical 2016-12-14 13:08:02 -08:00
David Anderson b916f7bab2 BOINC web site: make it work on phones
The front page was displaying as 2 columns even on phones.
I couldn't figure out the problem, but I switched to the standard
page_head() (moving the top part to project_banner()) and that fixed it.
2016-12-11 00:11:45 -08:00
David Anderson 530160fe13 web: various tweaks
- reduce default button size to sm
- change color of blockquote bar
- put order select on same line as Sort button
2016-12-09 15:50:40 -08:00
tristanolive db40fc848e Merge pull request #1733 from drshawnkwang/drupal_fix-csswidths
Drupal: Fixed fixed-width CSS for smaller browser windows.
2016-12-09 15:03:40 -05:00
Shawn Kwang d4778af86f Drupal: Adds page-wrapper min-width 980px.
Manully reverts navigation width back to 980px.
2016-12-09 09:59:10 -06:00
David Anderson b327ec3789 web: bug fixes and improvements
- The table structure for message-board posts was messed up.  Simplify it.
- make buttons x-small
- make button text white
2016-12-09 00:44:26 -08:00
David Anderson 9919d9acfb bump release version, tweak BOINC home page 2016-12-09 00:43:57 -08:00
Christian Beer c2f739e120 Locale: Update localization template files [skip ci] 2016-12-09 08:45:41 +01:00
Christian Beer 2b9edf8437 Locale: fix po header
Apparently the escaped newline character in the PO header is mandatory.
2016-12-09 08:42:15 +01:00
David Anderson dbdc734855 Merge pull request #1734 from BOINC/update_locale_scripts
Locale: Update scripts and templates
2016-12-08 16:56:35 -08:00
Christian Beer 09b91e571d Locale: Update localization template files [skip ci]
Note: not yet transfered to transifex.
2016-12-08 21:32:22 +01:00
Christian Beer dde699861b Locale: tweak filepaths in templates
Omitting the first directory in the filename of translatable strings is ambiguous if you don't know what directory this template was build from. So this adds back the top level directory and the filename in comments inside the pot files is now always relative to the source directory.
I also added the generic language name header to the BONIC-Web ressource becaue it also needs to know the language names and not necessarily gets the info from BOINC-Project-Generic.
2016-12-08 21:24:11 +01:00
Shawn Kwang 2a8f919095 Drupal: Fixed fixed-width CSS for smaller browser windows.
https://dev.gridrepublic.org/browse/DBOINCP-345
2016-12-08 11:13:52 -06:00
David Anderson 330a8aa95b web: fix column widths in several places 2016-12-07 18:46:11 -08:00
David Anderson 3641a319fc web: improve message display
In messages (forum or PM) a [pre] section with a long line
would stretch the table cell,
causing that message and others to run off the edge of the window.

The solution, as Juha pointed out, is to use table-layout:fixed
for those tables, and to explicitly set the width of the other columns.
This causes the long lines to be put in boxes with a horizontal scrollbar,
and nothing overflows.
2016-12-07 18:17:57 -08:00
David Anderson 5136e65719 web: language names (international and native) from language_names.inc
... rather than from the .po files.
2016-12-07 16:36:17 -08:00
David Anderson ea0b081239 web: fix PHP warning and scrutinizer warning 2016-12-07 12:59:52 -08:00
David Anderson a223e9b8a6 Merge branch 'master' of github.com:BOINC/boinc 2016-12-07 11:33:17 -08:00
David Anderson c054358a6e web: tweaks to fix Scrutinizer complaints; few visible effects 2016-12-07 11:32:25 -08:00
Charlie Fenton e0c3d65705 MGR: Mac: continue replacing deprecated Mac APIs
All Mac APIs deprecated through OS 10.6 have now been replaced
2016-12-07 07:58:43 -08:00
David Anderson 391fcbe203 web: tweaks 2016-12-06 19:18:34 -08:00
David Anderson 3f7498f8eb Merge pull request #1731 from BOINC/bootstrap
Bootstrap
2016-12-06 14:07:33 -08:00
David Anderson a1f624ceb2 web: add remote job submission link to navbar 2016-12-06 13:55:18 -08:00
David Anderson a025c425a9 web: improve language selection 2016-12-06 10:07:12 -08:00
David Anderson b7b2f2e349 web: tweak in top user page 2016-12-05 13:44:47 -08:00
David Anderson e7fce16107 web: tweak site search appearance 2016-12-05 13:36:45 -08:00
David Anderson 9d673e1c93 web: appearance tweaks
- use form-control class for text inputs and selects.
    This makes them all full-width, but I guess that's OK.
- use success class (green) for action buttons
- right-align table headings where appropriate
- use <small> instead of text-muted.
- tweak custom CSS to fix link and navbar visited colors
2016-12-04 21:04:23 -08:00
David Anderson 107b170ae1 web: finish job of making headings blue in striped tables
i.e. use row_heading() or row_heading_array() to generate the heading
2016-12-02 23:25:01 -08:00
David Anderson b2a93ac843 web: various tweaks
- change dark-background link color
- change dark-background colors for <pre>
- fix heading color for striped tables
    It turns out that, for striped tables, Bootstrap ignores classes for <tr>.
    You have to put them in the <th>.
    row_heading() and row_heading_array() do this for you.
- put Preview content into a table w/ heading
2016-12-02 12:24:20 -08:00
Charlie Fenton c314bf23dd MGR: Mac: begin replacing deprecated Mac APIs 2016-12-02 04:08:43 -08:00
tristanolive af18be56fc Merge pull request #1725 from drshawnkwang/drupal_fix-boincphperror
Drupal: Fixed wrong function declaration
2016-12-01 00:01:14 -05:00
Charlie Fenton 9e1b0cf834 lib: Fix compiler warning (using the result of an assignment as a condition without parentheses) 2016-11-30 01:56:24 -08:00
David Anderson fa06cb7b10 web: fix appearance of project-specific prefs in grid mode 2016-11-29 23:32:06 -08:00
David Anderson 58c4d02b5d web: tweaks to project-specific prefs 2016-11-29 15:41:44 -08:00
David Anderson 5df6cda994 web: fix list=1 bbcode function 2016-11-29 13:00:21 -08:00
David Anderson c5a743baf4 web: if web stopped, show home page anyway 2016-11-29 12:59:38 -08:00
David Anderson 91b4dcdc37 web: make some strings translatable
Also: on default home page, don't show the big green Join button
if the user is logged in; they're presumably running BOINC
on at least one computer.
However, in this case put a Join item in the Project menu
in case this is a new computer and they forgot where to download from.
2016-11-29 00:34:26 -08:00
David Anderson ebaf838c44 Merge pull request #1724 from BOINC/localization_templates
Locale: refactor template update process
2016-11-28 16:55:02 -08:00
David Anderson 58be631b7c web tweaks; make BOINC page strings translatable 2016-11-28 16:45:24 -08:00
David Anderson 3c654716d7 web: small fixes; add custom CSS files 2016-11-28 15:22:17 -08:00
David Anderson 1140ec069d web: always use secure URL base if available. 2016-11-28 14:25:46 -08:00
David Anderson 3a4521e9a0 web: fixed problems w/ profile pages 2016-11-28 13:25:31 -08:00
Shawn Kwang 36741fa079 Drupal: Fixed wrong function declaration which caused PHP errors in Drupal's log. 2016-11-28 13:46:20 -06:00
Christian Beer 70dd29ed09 Locale: refactor template update process
* Automatically build templates from source files and push them to transifex. Templates are automatically created in the right place, no more manual copying files.
* Use a consistent header for all template files
* Only Android and Drupal are still updated on their own because this needs interactive tools.
2016-11-28 19:10:33 +01:00
Christian Beer d0397cc916 Locale: Update localization files [skip ci] 2016-11-28 17:17:19 +01:00
David Anderson 1d1c9eb444 web: tweaks for bootstrap
A bunch of little things.
Also new BOINC front page, by accident.
2016-11-28 00:47:25 -08:00
David Anderson e81fe674a7 web: thread titles not in bold 2016-11-25 23:07:36 -08:00
David Anderson 5ea948224e web: make $master_url a global var 2016-11-25 20:41:09 -08:00
David Anderson 48f1720085 Merge pull request #1671 from DAD-Grid/android-wrapper
Fixed wrapper execution time error in android
2016-11-25 02:41:02 -08:00