Commit 79af8764e1174ebce36ac888576dde8fc88f132a

Authored by Silvan Calarco
1 parent 94f1ffcf9a
Exists in master

webbuild-cgi: css fixes

Showing 1 changed file with 10 additions and 10 deletions Side-by-side Diff

webbuild/webbuild-cgi
... ... @@ -475,7 +475,7 @@
475 475 # repsearch request
476 476 if [ "$REQUEST" = "repsearch" ]; then
477 477 echo -n "<output><![CDATA["
478   - echo -n "<hr><b>Search results for \"$REPSEARCHTEXT\":</b><div align=left class=output id=outputtop style=\"font-family:serif;color:black;background-color:#E0F2D0;\">"
  478 + echo -n "<hr><b>Search results for \"$REPSEARCHTEXT\":</b><div align=left class=\"outputbox\" id=outputtop style=\"font-family:serif;color:black;background-color:#E0F2D0;\">"
479 479 # echo -n "<pre><!-- SCROLL -->"
480 480 REPSEARCHTEXT_FMT=`echo "${REPSEARCHTEXT}" | sed "s|[[:space:]]|+|g"`
481 481 curl -s "${WEBBUILD_DISTROQUERY_URL}?query=${REPSEARCHTEXT_FMT}&search_milestone2=true&search_milestone3=true&search_devel=true\
... ... @@ -494,7 +494,7 @@
494 494 # environment search request
495 495 if [ "$REQUEST" = "environmentsearch" ]; then
496 496 echo -n "<output><![CDATA["
497   - echo -n "<hr><b>Environment search results for \"$ENVSEARCHTEXT\":</b><div align=left class=output id=outputtop>"
  497 + echo -n "<hr><b>Environment search results for \"$ENVSEARCHTEXT\":</b><div align=left class=\"outputbox\" id=outputtop>"
498 498 echo -n "<pre><!-- SCROLL -->"
499 499 echo -n "<font style=\"background-color:gray\">Installed packages providing '$ENVSEARCHTEXT':</font><br>"
500 500 WHAT_PROVIDES=`$SUDO_WRAPPER binary $ENVIRONMENT "$USER" "" "rpm -q --what-provides \"$ENVSEARCHTEXT\"" | sort -u`
501 501  
... ... @@ -791,9 +791,9 @@
791 791 # echo -n "REQUEST=repsearch&REPSEARCHTEXT=\"+encodeURIComponent(getElementById('repsearchtext').value));>"
792 792  
793 793 if [ "$PACKAGE" ]; then
794   - echo -n "<input type=text style=\"display:block;width:98%;align:center;padding:0;margin:0;\" id=repsearchtext value=\"${PACKAGE/*\/}\" "
  794 + echo -n "<br><input type=text id=\"repsearchtext\" value=\"${PACKAGE/*\/}\" "
795 795 else
796   - echo -n "<input type=text style=\"display:block;width:98%;align:center;padding:0;margin:0;\" id=repsearchtext value=\"Enter a package name to search...\" "
  796 + echo -n "<br><input type=text id=\"repsearchtext\" value=\"Enter a package name to search...\" "
797 797 echo -n "onfocus=\"if (this.value==this.defaultValue) this.value=''\" "
798 798 fi
799 799 echo -n "onkeypress=if(checkEnter(event))ajax_getvalues(\""
... ... @@ -1020,7 +1020,7 @@
1020 1020 fi
1021 1021 RET=$?
1022 1022 [ $RET -eq 0 ] || {
1023   - echo -n "<output><![CDATA[<div class=output>ERROR: could not save file ${PACKAGE/*\/}.spec! Please report the problem, thanks.</div>]]></output></webbuild>"
  1023 + echo -n "<output><![CDATA[<div class=\"outputbox\">ERROR: could not save file ${PACKAGE/*\/}.spec! Please report the problem, thanks.</div>]]></output></webbuild>"
1024 1024 exit 1
1025 1025 }
1026 1026 rm -f $tmpfile
... ... @@ -1041,7 +1041,7 @@
1041 1041 else
1042 1042 OUTPUTMODE="outputbottom"
1043 1043 fi
1044   - echo -n "<output><![CDATA[<hr><b>Console output:</b><div align=left class=output id=$OUTPUTMODE>"
  1044 + echo -n "<output><![CDATA[<hr><b>Console output:</b><div align=left class=\"outputbox\" id=$OUTPUTMODE>"
1045 1045 echo -n "<pre>"
1046 1046 RET=255
1047 1047 case $REQUEST in
... ... @@ -1066,7 +1066,7 @@
1066 1066 "speccreate") if [ "$SPECCREATEURL" -a "$PACKAGE" ]; then
1067 1067 FOUND_EXISTING=`curl -s "${WEBBUILD_DISTROQUERY_URL}?package=$PACKAGE&search_milestone2=true&search_milestone3=true&search_devel=true&search_sources=true&query_compact=true&replyplain=true&searchbox=false"`
1068 1068 if [ "$FOUND_EXISTING" != "" ]; then
1069   - echo -n "<div align=left class=output id=outputtop style=\"font-family:serif;color:black;background-color:#E0F2D0;\">"
  1069 + echo -n "<div align=left class=\"output\" id=outputtop style=\"font-family:serif;color:black;background-color:#E0F2D0;\">"
1070 1070 echo "<b><font color=red>ERROR: package already exists, please update from appropriate version:</font><b>"
1071 1071 echo -n "<hr><b>Search results for \"$PACKAGE\":</b>$FOUND_EXISTING"
1072 1072 echo -n "</div>"
... ... @@ -1515,7 +1515,7 @@
1515 1515 echo -n "ADDPATCHNAME=\"+encodeURIComponent(getElementById('addpatchname').value));>"
1516 1516 echo -n "&nbsp;<a href=\"http://pastebin.com\" target=_new>pastebin</a><br>"
1517 1517 echo -n "URL:<input type=text id=addpatchurl value=\"\" style=\"width:80%\">"
1518   - echo -n "<br><div style=\"white-space:nowrap;font-size:9px;width:100%;overflow:hidden\"><span style=\"float:left;margin-top:6px;\">$PACKAGE-${SPECVAR_Version}-</span>"
  1518 + echo -n "<br><div style=\"white-space:nowrap;font-size:9pt;width:100%;overflow:hidden\"><span style=\"float:left;margin-top:6px;\">$PACKAGE-${SPECVAR_Version}-</span>"
1519 1519 echo -n "<span style=\"display:block;float:right;margin-top:6px;\">.patch</span>"
1520 1520 echo -n "<span style=\"display:block;overflow:hidden;padding-right:5px;\"><input type=text id=addpatchname value=\"\" style=\"width:100%\"></span></div>"
1521 1521 echo -n "</div>"
... ... @@ -1625,7 +1625,7 @@
1625 1625 #echo -n "REQUEST=runldconfig\");>"
1626 1626  
1627 1627 # environment search
1628   - echo -n "<div style=\"white-space:nowrap;width:100%;\">Provides:<input type=text style=\"width:75%;align:center;padding:0;margin:2px;\" id=environmentsearch value=\"Search package or provide...\" "
  1628 + echo -n "<div style=\"white-space:nowrap;width:100%;\">Provides:<input type=text style=\"width:75%;\" id=\"environmentsearch\" value=\"Search package or provide...\" "
1629 1629 echo -n "onfocus=\"if (this.value==this.defaultValue) this.value=''\" "
1630 1630 echo -n "onkeypress=if(checkEnter(event))ajax_getvalues(\""
1631 1631 echo -n "ENVIRONMENT=$ENVIRONMENT&REPOSITORY=$REPOSITORY&PACKAGE=$PACKAGEENCODED&"
... ... @@ -1643,7 +1643,7 @@
1643 1643 echo -n "<chatpanel><![CDATA["
1644 1644 # broadcast message
1645 1645 echo -n "<div class=\"chatpanel\">"
1646   -echo -n "<textarea id=broadcastmessage style=\"font-family:sans;height:36px;width:80%;float:left;font-size:8pt;resize:none;\" "
  1646 +echo -n "<textarea id=broadcastmessage style=\"height:40px;width:80%;float:left;resize:none;\" "
1647 1647 echo -n "onfocus=\"if(this.value==this.defaultValue)this.value='';\">Chat with online developers...</textarea>"
1648 1648 echo -n "<input type=button style=\"float:right\" onclick=ajax_getvalues(\""
1649 1649 echo -n "ENVIRONMENT=$ENVIRONMENT&REPOSITORY=$REPOSITORY&PACKAGE=$PACKAGEENCODED&"